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