示例#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()));
 }