Beispiel #1
0
        public async Task<IdentityResult> RegisterUser(UserModel userModel)
        {
            IdentityUser user = new IdentityUser
            {
                UserName = userModel.UserName
            };

            var result = await userManager.CreateAsync(user, userModel.Password);

            return result;
        }        
Beispiel #2
0
 public async Task<IdentityResult> RegisterUser(UserModel userModel)
 {
     return await authRepo.RegisterUser(userModel);
 }