public virtual async Task <ApiResource> FindApiResourceAsync(string name) { var resource = await _identityResourceRepository.FindApiResourceAsync(name); return(_objectMapper.Map <ApiResources.ApiResource, ApiResource>(resource)); }