public IActionResult Add(UserViewModel user) { Repo.AddUser(new User { Name = user.Name }); return(new RedirectToActionResult("Index", "Home", null)); }
public IActionResult Add(UserViewModel user) { Repo.AddUser(new ChoreApp.Models.User(-1, user.Name)); return(new RedirectToActionResult("Index", "Home", null)); }