Exemple #1
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"));
        }
Exemple #2
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"));
        }