Пример #1
0
        public IActionResult GetPassengersByHoursByRoutes(DateTime selectedDate, [FromQuery] int[] selectedRoutesId)
        {
            log.Info(nameof(MetricsController.GetPassengersByHoursByRoutes));

            try
            {
                ChartTableDto chartDtoTicketsByTicketTypes = metricsService.PassengersByHoursByRoutes(selectedDate, selectedRoutesId);

                return(Json(chartDtoTicketsByTicketTypes));
            }
            catch (Exception e)
            {
                log.Error(e);

                return(BadRequest());
            }
        }