public async Task <string> GetUserNameAsync(UserDTO user, CancellationToken cancellationToken) { var userEntity = new UserEntity(user.Id, user.FirstName, user.LastName, user.Email, user.NormalizedEmail, user.EmailConfirmed, user.PasswordHash, user.BirthDate, user.RegistrationDate); return(await _userIdentity.GetUserNameAsync(userEntity, cancellationToken)); }