Example #1
0
 internal IEnumerable <Review> Get()
 {
     return(_repo.Get());
 }
Example #2
0
        public ReviewDto GetReviewById(string id)
        {
            var entity = _reviewsRepository.Get(id);

            return(Mapper.Map <ReviewDto>(entity));
        }
Example #3
0
        //NOTE is this route necessary?
        internal IEnumerable <Review> GetAll()
        {
            IEnumerable <Review> reviews = _revsrepo.Get();

            return(reviews.ToList().FindAll(r => r.Published));
        }