public virtual async Task<ApplicationIdentityResult> AddLoginAsync(int userId, ApplicationUserLoginInfo login) { var identityResult = await _userManager.AddLoginAsync(userId, login.ToUserLoginInfo()).ConfigureAwait(false); return identityResult.ToApplicationIdentityResult(); }
public virtual async Task<AppUser> FindAsync(ApplicationUserLoginInfo login) { var user = await _userManager.FindAsync(login.ToUserLoginInfo()).ConfigureAwait(false); return user.ToAppUser(); }