Beispiel #1
0
        public async Task <IActionResult> Index([FromQuery] ReviewFilter reviewFilter)
        {
            var filter = new ReviewFilter();

            {
                filter.Subject        = reviewFilter.Subject;
                filter.FlightId       = reviewFilter.FlightId;
                filter.DateOfCreation = reviewFilter.DateOfCreation;
            }
            return(Ok(await repo.GetAll(filter)));
        }
Beispiel #2
0
        public async Task <IActionResult> Index([FromQuery(Name = "ReviewFilter")] ReviewFilter reviewFilter = null)
        {
            var filter = new ReviewFilter()
            {
                Subject        = reviewFilter.Subject,
                RestaurantId   = reviewFilter.RestaurantId,
                DateOfCreation = reviewFilter.DateOfCreation
            };

            return(Ok(await reviewRepo.GetAll(filter)));
        }
        public IEnumerable <Review> GetAll()
        {
            var Reviews = _reviewRepo.GetAll();

            return(Reviews);
        }
Beispiel #4
0
 public List <Review> AllReviews()
 {
     return(_pzReviewRepo.GetAll().ToList());
 }