public virtual async Task <IdentityResourcePropertiesDto> GetIdentityResourcePropertyAsync(int identityResourcePropertyId) { var identityResourceProperty = await IdentityResourceRepository.GetIdentityResourcePropertyAsync(identityResourcePropertyId); if (identityResourceProperty == null) { throw new UserFriendlyErrorPageException(string.Format(IdentityResourceServiceResources.IdentityResourcePropertyDoesNotExist().Description, identityResourcePropertyId)); } var identityResource = await IdentityResourceRepository.GetIdentityResourceAsync(identityResourceProperty.IdentityResourceId); var identityResourcePropertiesDto = identityResourceProperty.ToModel(); identityResourcePropertiesDto.IdentityResourceId = identityResourceProperty.IdentityResourceId; identityResourcePropertiesDto.IdentityResourceName = identityResource.Name; return(identityResourcePropertiesDto); }