常用方法
常用方法
常用方法
常用方法
public ActionResult Edit(Game game) { if (ModelState.IsValid) { db.Edit(game); return(RedirectToAction("Details", new { id = game.Id })); } return(View(game)); }
public ActionResult Edit(Game game) { if (ModelState.IsValid) { db.Edit(game); return(RedirectToAction("Details", new { id = game.Id })); } return(View(game)); }