Example #1
0
        public async Task <JsonResult> getRoutesByCountryCode(string countrycode)
        {
            var departureTerminal = await Logical.GetDepartureTerminalsBycountrycode(countrycode);

            departureTerminal.Object.Items = departureTerminal.Object.Items.OrderBy(x => x.TerminalName).ToList();

            return(new JsonResult {
                Data = departureTerminal, JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }