internal IEnumerable <Review> GetReviewsByContractorId(int id) { var contractor = _contractorsRepo.GetById(id); if (contractor == null) { throw new Exception("Invalid Id"); } return(_repo.GetReviewsByContractorId(id)); }