Пример #1
0
        internal IEnumerable <Job> GetJobsByContractorId(int contractorId)
        {
            Contractor exists = _crepo.Get(contractorId);

            if (exists == null)
            {
                throw new Exception("Invalid Id");
            }
            return(_repo.GetJobsByContractorId(contractorId));
        }
 internal IEnumerable <Contractor> GetAll()
 {
     return(_repo.Get());
 }
 public IEnumerable <Contractor> Get()
 {
     return(_repo.Get());
 }