Esempio n. 1
0
 // GET: api/Offer
 public IHttpActionResult GetBySeller(int idSeller)
 {
     if (idSeller > 0)
     {
         return(Ok(offerService.GetBySeller(idSeller)));
     }
     else
     {
         return(Ok(offerService.GetAll(0)));
     }
 }