Пример #1
0
        public ActionResult ManageAirline()
        {
            Models.Airline        oAirline   = new Models.Airline();
            List <Models.Airline> lstAirline = null;

            if (ModelState.IsValid)
            {
                lstAirline = oAirline.GetAirlineInformation(0, "ALL");
            }
            ViewBag.AirlineList = lstAirline;
            return(View());
        }
Пример #2
0
        public ActionResult ViewAirline(Int64 nAirlineID)
        {
            Models.Airline        oAirline   = new Models.Airline();
            List <Models.Airline> lstAirline = null;

            if (ModelState.IsValid)
            {
                lstAirline = oAirline.GetAirlineInformation(nAirlineID, "ONE");
                if (lstAirline != null && lstAirline.Count > 0)
                {
                    oAirline = lstAirline[0];
                }
            }
            ViewBag.AirlineID = nAirlineID;
            return(View(oAirline));
        }