示例#1
0
        public ActionResult CreateAdmin(UserVIewModel user)
        {
            try
            {
                //Als username geven we default het emailadres mee
                _userManager.AddApplicationGebruiker(user.Email, user.Voornaam, user.Naam,
                                                     user.Email, DateTime.Now, user.Passw, user.Role);

                return(RedirectToAction("AdminLijst"));
            }
            catch
            {
                return(View());
            }
        }