Example #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);
     }
 }
Example #2
0
 public ActionResult New(NewUserViewModel user)
 {
     return View(user ?? new NewUserViewModel());
 }