public async Task <Core.Entities.IdentityResource.IdentityResource> GetIdentityResourceByIdAsync(int id)
        {
            if (id <= 0)
            {
                return(null);
            }

            return(await _repository.GetAsync(id));
        }
예제 #2
0
        public virtual async Task <IdentityResourceDto> GetAsync(Guid id)
        {
            var identityResource = await _resourceRepository.GetAsync(id);

            return(ObjectMapper.Map <IdentityResource, IdentityResourceDto>(identityResource));
        }