Exemplo n.º 1
0
        public IHttpActionResult GetAllFlightsVacancy()
        {
            Dictionary <Flight, int> flightsVacancy = _anonymous.GetAllVacancyFlights();

            if (flightsVacancy.Count == 0)
            {
                return(NotFound());
            }
            return(Ok(flightsVacancy.ToList()));
        }