Beispiel #1
0
 public void Handle(UpdateDelegateCommand command)
 {
     var sessionDelegate = delegateRepository.Find(command.SessionDelegateId);
     sessionDelegate.Update(command);
     delegateRepository.Update(sessionDelegate);
     delegateRepository.Save();
 }
Beispiel #2
0
        public void Handle(UpdateDelegateCommand command)
        {
            var sessionDelegate = delegateRepository.Find(command.SessionDelegateId);

            sessionDelegate.Update(command);
            delegateRepository.Update(sessionDelegate);
            delegateRepository.Save();
        }
Beispiel #3
0
        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"));
        }
Beispiel #4
0
        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");
        }
Beispiel #5
0
        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");
        }
Beispiel #6
0
        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"));
        }
Beispiel #7
0
 public void Update(UpdateDelegateCommand delegateData)
 {
     throw new NotImplementedException();
 }
Beispiel #8
0
        public ActionResult CancelSessionDelegateFromSession(UpdateDelegateCommand command)
        {
            updateHandler.Handle(command);

            return RedirectToAction("Index", "Session");
        }
Beispiel #9
0
 public void Update(UpdateDelegateCommand delegateData)
 {
     throw new NotImplementedException();
 }