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

            await ApiResourceRepository.DeleteAsync(apiResource);
        }
コード例 #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));
        }
コード例 #4
0
 public virtual async Task <ApiResourceDto> GetAsync(ApiResourceGetByIdInputDto apiResourceGetById)
 {
     return(await ApiResourceAppService.GetAsync(apiResourceGetById));
 }