public PageResponse <Event> GetEventPage([FromQuery] int page, [FromQuery] int size) { _logger.LogInformation(LoggingEvents.GetPage, "Getting page {PAGE}", page); string filterString = HttpContext.Request.Query["filter"]; EventRequestFilter filter = JsonConvert.DeserializeObject <EventRequestFilter>(filterString); CorrectUserTime(filter); _logger.LogDebug(LoggingEvents.Filtering, "Getting page {PAGE} FromDate: {FROM} ToDate: {TO}", page, filter.fromDate, filter.toDate); return(_service.GetPage(page, size, filter)); }