常用方法
常用方法
常用方法
常用方法
public ActionResult Edit([Bind(Include = "Id,Description,InsertedDateTime,ModifiedDateTime")] Country country) { if (ModelState.IsValid) { repo.Attach(country); repo.SaveChanges(); return(RedirectToAction("Index")); } return(View(country)); }