コード例 #1
0
 public override async Task <BrandDto> GetById(string id)
 {
     try
     {
         return(WrapItem(await Task.Run(() => ProductManagementService.GetBrand(id))));
     }
     catch (NotFoundException ex)
     {
         throw new BusinessException("Error retrieving item", ex);
     }
     catch (Exception ex)
     {
         throw new InternalException("Error retrieving item", ex);
     }
 }