Beispiel #1
0
 public IHttpActionResult GetAll()
 {
     try
     {
         return(Ok(new ItemsResponse <ProductListing>
         {
             Items = _productListingService.GetAll(),
             IsSuccessful = true
         }));
     }
     catch (Exception ex) { return(BadRequest(ex.Message)); }
 }