public virtual async Task DeleteAsync(ApiResourceGetByIdInputDto apiResourceGetById)
        {
            var apiResource = await ApiResourceRepository.GetAsync(apiResourceGetById.Id);

            await ApiResourceRepository.DeleteAsync(apiResource);
        }
Beispiel #2
0
 public virtual async Task DeleteAsync(ApiResourceGetByIdInputDto apiResourceGetById)
 {
     await ApiResourceAppService.DeleteAsync(apiResourceGetById);
 }
        public virtual async Task <ApiResourceDto> GetAsync(ApiResourceGetByIdInputDto apiResourceGetById)
        {
            var apiResource = await ApiResourceRepository.GetAsync(apiResourceGetById.Id);

            return(ObjectMapper.Map <ApiResource, ApiResourceDto>(apiResource));
        }
Beispiel #4
0
 public virtual async Task <ApiResourceDto> GetAsync(ApiResourceGetByIdInputDto apiResourceGetById)
 {
     return(await ApiResourceAppService.GetAsync(apiResourceGetById));
 }