常用方法
常用方法
常用方法
常用方法
public ActionResult Create(Flight flight) { if (ModelState.IsValid) { try { db.AddNewFlight(flight); } catch (Exception e) { return(RedirectToAction("Error", new { message = e.Message })); } return(RedirectToAction("Index")); } return(View()); }