Exemple #1
0
        public ActionResult Create(Models.UsersViewModel user)
        {
            try
            {
                var createdUser = _repository.CreateUser(user.UserFn, user.UserLn);

                return(RedirectToAction(nameof(Index)));
            }
            catch
            {
                return(View());
            }
        }
Exemple #2
0
        // GET: Users/Create
        public ActionResult Create()
        {
            var viewModel = new Models.UsersViewModel();

            return(View(viewModel));
        }