示例#1
0
        public IActionResult GetFlightsPerMonth()
        {
            var flights = flightsRepository.GetNumberOfFlightsPerMonth();

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

            return(Ok(flights.Result));
        }