Esempio n. 1
0
        public IActionResult GetChartDate()
        {
            var flights = flightsRepository.GetChartData();

            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            return(Ok(flights.Result));
        }