コード例 #1
0
        internal IEnumerable <Review> GetReviewsByContractorId(int id)
        {
            var contractor = _contractorsRepo.GetById(id);

            if (contractor == null)
            {
                throw new Exception("Invalid Id");
            }

            return(_repo.GetReviewsByContractorId(id));
        }