예제 #1
0
        public IActionResult PassengersByPrivileges(DateTime startPeriod, DateTime endPeriod, [FromQuery] int[] selectedRoutesId)
        {
            log.Info(nameof(MetricsController.PassengersByPrivileges));

            try
            {
                var chartDtoPassengersByPrivileges = metricsService.PassengersByPrivileges(startPeriod, endPeriod, selectedRoutesId);

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

                return(BadRequest());
            }
        }