public async Task <Core.Entities.IdentityResource.IdentityResource> GetIdentityResourceByIdAsync(int id) { if (id <= 0) { return(null); } return(await _repository.GetAsync(id)); }
public virtual async Task <IdentityResourceDto> GetAsync(Guid id) { var identityResource = await _resourceRepository.GetAsync(id); return(ObjectMapper.Map <IdentityResource, IdentityResourceDto>(identityResource)); }