Example #1
0
        public IActionResult CreateContactPost(string airlineName, int aircraftCount, bool isLowcost, int maximumLuggageWeight)
        {
            var newAirline = new Airline()
            {
                AirlineName = airlineName, AircraftCount = aircraftCount, IsLowcost = isLowcost, MaximumLuggageWeight = maximumLuggageWeight
            };

            _airlineService.CreateAirline(newAirline);

            var airlineList = _airlineService.GetAllAirlines();



            return(View("Airline", airlineList));
        }
Example #2
0
 public ActionResult Create(AirlineModel model)
 {
     _airlineService.CreateAirline(model);
     return(RedirectToAction("Index"));
 }