Ejemplo n.º 1
0
        public IActionResult Add(AddUserViewModel addUserViewModel)
        {
            if (ModelState.IsValid)
            {
                addUserViewModel.AddUser();
                return(Redirect("/"));
            }

            return(View(addUserViewModel));
        }
 public void Execute(object parameter)
 {
     addUserViewModel.AddUser();
 }
 public void Execute(object parameter)
 {
     reciever.AddUser(parameter as User);
 }