public void Handle(AddDelegateCommand command) { var sessionDelegate = new SessionDelegate(command); delegateRepository.Insert(sessionDelegate); delegateRepository.Save(); }
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")); }
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"); }
public ActionResult AddSessionDelegate(AddDelegateCommand command) { var errors = addValidator.GetErrorList(command); if (errors.Any()) { //diplay errors to the user return View(errors); } addHandler.Handle(command); return RedirectToAction("Index", "SessionDelegate"); }
public ActionResult AddSessionDelegate(AddDelegateCommand command) { var errors = addValidator.GetErrorList(command); if (errors.Any()) { //diplay errors to the user return(View(errors)); } addHandler.Handle(command); return(RedirectToAction("Index", "SessionDelegate")); }
public SessionDelegate(AddDelegateCommand command) { throw new NotImplementedException(); }
public ActionResult AddSessionDelegate(AddDelegateCommand command) { addHandler.Handle(command); return RedirectToAction("Index", "SessionDelegate"); }
public SessionDelegate(AddDelegateCommand command) { throw new NotImplementedException(); }
public void Handle(AddDelegateCommand command) { var sessionDelegate = new SessionDelegate(command); delegateRepository.Insert(sessionDelegate); delegateRepository.Save(); }