Exemple #1
0
        public IdentityResult CreateUser(UserManager <ApplicationUser> userManager, CreateUserViewModel model)
        {
            ApplicationUser user = new ApplicationUser
            {
                UserName       = model.Email,
                Email          = model.Email,
                FullName       = model.FullName,
                EmploymentDate = model.EmploymentDate
            };

            return(_adminData.CreateUser(userManager, user, model.Password, model.SelectedRoles));
        }