public PagedResponse <FestivalQueryDto> Execute(FestivalSearch search)
        {
            var query = _context.Festivals.Include(x => x.Place).AsQueryable();

            if (!string.IsNullOrEmpty(search.Name) && !string.IsNullOrWhiteSpace(search.Name))
            {
                query = query.Where(x => x.Name.ToLower().Contains(search.Name.ToLower()));
            }

            if (search.PlaceID is int)
            {
                query = query.Where(x => x.PlaceID == search.PlaceID);
            }

            return(query.Paged <FestivalQueryDto, Festival>(search, _mapper));
        }
 public IActionResult Get([FromQuery] FestivalSearch search, [FromServices] IGetFestivalsQuery query)
 {
     return(Ok(_executor.ExecuteQuery(query, search)));
 }