예제 #1
0
        public void Handle(AddDelegateCommand command)
        {
            var sessionDelegate = new SessionDelegate(command);

            delegateRepository.Insert(sessionDelegate);
            delegateRepository.Save();
        }
예제 #2
0
        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"));
        }
예제 #3
0
        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");
        }
예제 #4
0
        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");
        }
예제 #5
0
        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"));
        }
예제 #6
0
 public SessionDelegate(AddDelegateCommand command)
 {
     throw new NotImplementedException();
 }
예제 #7
0
        public ActionResult AddSessionDelegate(AddDelegateCommand command)
        {
            addHandler.Handle(command);

            return RedirectToAction("Index", "SessionDelegate");
        }
예제 #8
0
 public SessionDelegate(AddDelegateCommand command)
 {
     throw new NotImplementedException();
 }
예제 #9
0
 public void Handle(AddDelegateCommand command)
 {
     var sessionDelegate = new SessionDelegate(command);
     delegateRepository.Insert(sessionDelegate);
     delegateRepository.Save();
 }