public ActionResult <IEnumerable <Contractor> > GetContractorsByJob(int id) { try { return(Ok(_cs.GetContractorsByJob(id))); } catch (System.Exception e) { return(BadRequest(e.Message)); } }