예제 #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;
        }        
예제 #2
0
 public async Task<IdentityResult> RegisterUser(UserModel userModel)
 {
     return await authRepo.RegisterUser(userModel);
 }