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)); }
public ActionResult Create(AirlineModel model) { _airlineService.CreateAirline(model); return(RedirectToAction("Index")); }