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))); }
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); }
public List <Review> AllReviews() { return(_pzReviewRepo.GetAll().ToList()); }