// Function that returns a list of all recview for a chosen book from the repository layer public List <ReviewListViewModel> GetAllReviews(int Id) { var ReviewList = _reviewRepo.GetAllReviews(Id); return(ReviewList); }
private Task <List <Review> > GetAllReviewsAsync() { ReviewRepo revList = new ReviewRepo(context); return(Task.FromResult(revList.GetAllReviews().ToList())); }
public ActionResult Index() { var data = repo.GetAllReviews(); return(View(data)); }