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

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

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