CQRS.Talk.Refactoring2.Commands._4.Validators.ServiceConsumer.CancelSessionDelegateFromSession C# (CSharp) Méthode

CancelSessionDelegateFromSession() private méthode

private CancelSessionDelegateFromSession ( UpdateDelegateCommand command ) : ActionResult
command UpdateDelegateCommand
Résultat 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");
        }
    }