public ActionResult Create(Models.UsersViewModel user) { try { var createdUser = _repository.CreateUser(user.UserFn, user.UserLn); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }
// GET: Users/Create public ActionResult Create() { var viewModel = new Models.UsersViewModel(); return(View(viewModel)); }