Пример #1
0
        public IActionResult All()
        {
            var genres = reviewsService.GetAll <ReviewViewModel>(1, Common.GlobalConstants.DefaultItemsPerPage);

            return(this.View(genres));
        }
Пример #2
0
 public ActionResult <IEnumerable <ReviewsVM> > Get()
 {
     return(_reviewsService.GetAll());
 }
Пример #3
0
        public IActionResult GetAllReviews()
        {
            var reviews = AutoMapper.Mapper.Map <List <ReviewResponse> >(_reviewService.GetAll());

            return(Ok(reviews));
        }
Пример #4
0
 public IActionResult GetAllReviews()
 {
     return(Ok(_reviewService.GetAll()));
 }