public void Handle(UpdateDelegateCommand command) { var sessionDelegate = delegateRepository.Find(command.SessionDelegateId); sessionDelegate.Update(command); delegateRepository.Update(sessionDelegate); delegateRepository.Save(); }
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")); }
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"); }
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"); }
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")); }
public void Update(UpdateDelegateCommand delegateData) { throw new NotImplementedException(); }
public ActionResult CancelSessionDelegateFromSession(UpdateDelegateCommand command) { updateHandler.Handle(command); return RedirectToAction("Index", "Session"); }