public ActionResult CreateFlight([Bind(Exclude = "Id_Flight")] Flight flight) { try { if (flightDAO.CreateFlight(flight)) { return(Redirect("GetAllRoutes")); } else { return(View("CreateFlight")); } } catch { return(View("CreateFlight")); } }
public ActionResult CreateFlight([Bind(Exclude = "Id_Flight")] Flight flight) { try { if (flightDAO.CreateFlight(flight)) { return(Redirect("GetAllRoutes")); } else { return(View("CreateFlight")); } } catch { return(View("CreateFlight")); } }