Beispiel #1
0
 public async Task <IdentityRoleDto> GetAsync(Guid id)
 {
     return(ObjectMapper.Map <IdentityRole, IdentityRoleDto>(
                await _roleManager.GetByIdAsync(id)
                ));
 }
Beispiel #2
0
 public virtual async Task <IdentityRoleDto> GetAsync(Guid id)
 {
     return(ObjectMapper.Map <IdentityRole, IdentityRoleDto>(
                await _roleManager.GetByIdAsync(id).ConfigureAwait(false)));
 }