CQRS.Talk.Refactoring2.Commands._5.Mediator.ServiceConsumer.AddSessionDelegate C# (CSharp) Method

AddSessionDelegate() private method

private AddSessionDelegate ( AddDelegateCommand command ) : ActionResult
command AddDelegateCommand
return ActionResult
        public ActionResult AddSessionDelegate(AddDelegateCommand command)
        {
            var errors = mediator.ProcessCommand(command);

            if (errors.Any())
            {
                //diplay errors to the user
                return View(errors);
            }

            return RedirectToAction("Index", "SessionDelegate");
        }