Esempio n. 1
0
 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));
 }
Esempio n. 2
0
        //
        // GET: /Strategy/Edit/5

        public ActionResult Edit(int id)
        {
            ContentStrategy contentstrategy = db.ContentStrategies.Single(c => c.StrategyID == id);

            return(View(contentstrategy));
        }
Esempio n. 3
0
        //
        // GET: /Strategy/Details/5

        public ViewResult Details(int id)
        {
            ContentStrategy contentstrategy = db.ContentStrategies.Single(c => c.StrategyID == id);

            return(View(contentstrategy));
        }