public List <Review> GetReviews(string isbn)
        {
            var list = _reviewRepo.GetReviews().Where(r => r.BookFK == isbn).ToList(); //lambda

            return(list);
        }
        public ResterauntFunctions()
        {
            resterauntList = resterauntRepo.GetAllResteraunts().ToList();

            reviewList = reviewsRepo.GetReviews().ToList();
        }
Exemple #3
0
 public List <Review> GetReviews(int isbn)
 {
     return(_reviewRepo.GetReviews().Where(r => r.BookFK == isbn).ToList()); //lambda
 }