常用方法
常用方法
常用方法
常用方法
public ActionResult Edit(Restaurant restaurant) { db.Update(restaurant); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit(Restaurant restaurant) { db.Update(restaurant); db.SaveChanges(); return(RedirectToAction("Index")); }