Ejemplo n.º 1
0
        public IActionResult GetPassengersByDaysOfWeek(DateTime startPeriod, DateTime endPeriod)
        {
            log.Info(nameof(MetricsController.GetPassengersByDaysOfWeek));

            try
            {
                ChartDto chartDtoTicketsByTicketTypes = metricsService.PassengersByDaysOfWeek(startPeriod, endPeriod);

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

                return(BadRequest());
            }
        }