Пример #1
0
        public async Task <ActionResult <List <Flight> > > GetFlightsByDepatrureDate([FromBody] DateTime date)
        {
            FlightsCenterSystem.GetInstance().login(GetLoginToken().Name, GetLoginToken().Password,
                                                    out LoginToken <Object> l, out FacadeBase f);
            facade = f as LoggedInAirlineFacade;
            var result = await Task.Run(() => facade.GetFlightsByDepatrureDate(date));

            return(StatusCode(200, result));
        }