public async Task <AppUserDto> GetByUsername(string username)
        {
            var userE = await IdentityUserRepository.FindByNormalizedUserNameAsync(LookupNormalizer.NormalizeName(username));

            return(ObjectMapper.Map <Volo.Abp.Identity.IdentityUser, AppUserDto>(userE));
        }
 public async Task <bool> IsUsernameAvailable(string username)
 {
     return((await IdentityUserRepository.FindByNormalizedUserNameAsync(LookupNormalizer.NormalizeName(username))) == null);
 }