Пример #1
0
 public IActionResult Add(UserViewModel user)
 {
     Repo.AddUser(new User {
         Name = user.Name
     });
     return(new RedirectToActionResult("Index", "Home", null));
 }
Пример #2
0
 public IActionResult Add(UserViewModel user)
 {
     Repo.AddUser(new ChoreApp.Models.User(-1, user.Name));
     return(new RedirectToActionResult("Index", "Home", null));
 }