public async Task <IdentityResult> RegisterUser(UserModel userModel) { SocialTapUser user = new SocialTapUser { UserName = userModel.UserName }; var result = await _userManager.CreateAsync(user, userModel.Password); return(result); }
public async Task <SocialTapUser> FindUser(string userName, string password) { SocialTapUser user = await _userManager.FindAsync(userName, password); return(user); }