Exemplo n.º 1
0
        // 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()));
        }
Exemplo n.º 3
0
        public ActionResult Index()
        {
            var data = repo.GetAllReviews();

            return(View(data));
        }