public ActionResult <BidViewModel> GetBidsByContractorId(int id)
 {
     try
     {
         return(Ok(_bs.GetBidsByContractorId(id)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }
Esempio n. 2
0
 public ActionResult <IEnumerable <ContractorBidViewModel> > GetBids(int id)
 {
     try
     {
         return(Ok(_bidsService.GetBidsByContractorId(id)));
     }
     catch (System.Exception error)
     {
         return(BadRequest(error.Message));
     }
 }