public async Task<IdentityResult> RegisterUser(UserModel userModel) { IdentityUser user = new IdentityUser { UserName = userModel.UserName }; var result = await userManager.CreateAsync(user, userModel.Password); return result; }
public async Task<IdentityResult> RegisterUser(UserModel userModel) { return await authRepo.RegisterUser(userModel); }