public ActionResult <Poll <EventViewModel> > GetEventPoll([FromQuery] int?offset, [FromQuery] int?count, [FromQuery] string categories, [FromQuery] string tags, [FromQuery] string places) { var filter = new EventsFilter(); try { filter.ParseParameters(categories, tags, places); } catch (ArgumentException e) { return(BadRequest(e.ToString())); } return(eventsRepository.GetEventPoll(filter, offset, count)); }