mirror of https://github.com/abpframework/abp.git
4 changed files with 4 additions and 31 deletions
@ -1,14 +0,0 @@ |
|||
using Volo.Abp.Threading; |
|||
|
|||
namespace Volo.Abp.Identity |
|||
{ |
|||
public static class IdentityRoleRepositoryExtensions |
|||
{ |
|||
public static IdentityRole FindByNormalizedName(this IIdentityRoleRepository roleRepository, string normalizedRoleName) |
|||
{ |
|||
return AsyncHelper.RunSync(() => roleRepository.FindByNormalizedNameAsync(normalizedRoleName)); |
|||
} |
|||
|
|||
//TODO: Other sync extension methods
|
|||
} |
|||
} |
|||
@ -1,15 +0,0 @@ |
|||
using JetBrains.Annotations; |
|||
using Volo.Abp.Threading; |
|||
|
|||
namespace Volo.Abp.Identity |
|||
{ |
|||
public static class IdentityUserRepositoryExtensions |
|||
{ |
|||
public static IdentityUser FindByNormalizedUserName(this IIdentityUserRepository repository, [NotNull] string normalizedUserName) |
|||
{ |
|||
return AsyncHelper.RunSync(() => repository.FindByNormalizedUserNameAsync(normalizedUserName)); |
|||
} |
|||
|
|||
//TODO: Other sync extension methods
|
|||
} |
|||
} |
|||
Loading…
Reference in new issue