Exemple #1
0
        public IHttpActionResult GetAllFlightsVacancy()
        {
            FCS = FlyingCenterSystem.GetFlyingCenterSystemInstance();
            IAnonymousUserFacade     anonymousFacade = FCS.GetFacade(null) as IAnonymousUserFacade;
            Dictionary <Flight, int> flights         = anonymousFacade.GetAllFlightsByVacancy();

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