CQRS.Talk.Refactoring2.Commands._4.Validators.ServiceConsumer.CancelSessionDelegateFromSession C# (CSharp) Метод

CancelSessionDelegateFromSession() приватный Метод

private CancelSessionDelegateFromSession ( UpdateDelegateCommand command ) : ActionResult
command UpdateDelegateCommand
Результат ActionResult
        public ActionResult CancelSessionDelegateFromSession(UpdateDelegateCommand command)
        {
            var errors = updateValidator.GetErrorList(command);

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

            updateHandler.Handle(command);

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