internal IEnumerable <Contractor> GetContractorsByJob(int id) { Job exists = _jrepo.Get(id); if (exists == null) { throw new Exception("invalid id"); } return(_repo.GetContractorsByJob(id)); }