Exemplo n.º 1
0
 public ActionResult Create(NewUserViewModel user)
 {
     try {
         _userTasks.AddUser(_createUserMap.MapFrom(user));
         return this.RedirectToAction(x => x.Index());
     } catch (Exception ex) {
         return View("New", user);
     }
 }
Exemplo n.º 2
0
 public ActionResult New(NewUserViewModel user)
 {
     return View(user ?? new NewUserViewModel());
 }