public async Task <TApplicationUser> FindByNameAsync(string login) { var baseUser = await userRepository.GetByLogin(login, session, true); return(baseUser.MapTo <TApplicationUser>()); }
public async Task <TUser> FindByNameAsync(string normalizedUserName, CancellationToken cancellationToken = default(CancellationToken)) { cancellationToken.ThrowIfCancellationRequested(); return(await userRepository.GetByLogin(normalizedUserName, session, true)); }