public ActionResult Edit(ContentStrategy contentstrategy) { if (ModelState.IsValid) { db.ContentStrategies.Attach(contentstrategy); db.ObjectStateManager.ChangeObjectState(contentstrategy, EntityState.Modified); db.SaveChanges(); return(RedirectToAction("Details")); } return(View(contentstrategy)); }
// // GET: /Strategy/Edit/5 public ActionResult Edit(int id) { ContentStrategy contentstrategy = db.ContentStrategies.Single(c => c.StrategyID == id); return(View(contentstrategy)); }
// // GET: /Strategy/Details/5 public ViewResult Details(int id) { ContentStrategy contentstrategy = db.ContentStrategies.Single(c => c.StrategyID == id); return(View(contentstrategy)); }