public ActionResult Edit(ContentAboutU contentaboutu) { if (ModelState.IsValid) { db.ContentAboutUs.Attach(contentaboutu); db.ObjectStateManager.ChangeObjectState(contentaboutu, EntityState.Modified); db.SaveChanges(); return(RedirectToAction("Details", new { id = 1 })); } return(View(contentaboutu)); }
// // GET: /AboutUs/Edit/5 public ActionResult Edit(int id) { ContentAboutU contentaboutu = db.ContentAboutUs.Single(c => c.AboutUsID == id); return(View(contentaboutu)); }
// // GET: /AboutUs/Details/5 public ViewResult Details(int id) { ContentAboutU contentaboutu = db.ContentAboutUs.Single(c => c.AboutUsID == id); return(View(contentaboutu)); }