예제 #1
0
        public IHttpActionResult GetAllAirlineCompaniesByScheduledTime(string typeName)
        {
            FCS = FlyingCenterSystem.GetFlyingCenterSystemInstance();
            IAnonymousUserFacade   anonymousFacade  = FCS.GetFacade(null) as IAnonymousUserFacade;
            IList <AirlineCompany> airlineCompanies = anonymousFacade.GetAllAirlineCompaniesByScheduledTime(typeName);

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