public ActionResult CancelSessionDelegateFromSession(UpdateDelegateCommand command) { var errors = mediator.ProcessCommand(command); if (errors.Any()) { //diplay errors to the user return View(errors); } return RedirectToAction("Index", "Session"); } }