Пример #1
0
 public ActionResult Edit(ContentClients contentclients)
 {
     if (ModelState.IsValid)
     {
         db.ContentClients1.Attach(contentclients);
         db.ObjectStateManager.ChangeObjectState(contentclients, EntityState.Modified);
         db.SaveChanges();
         return(RedirectToAction("Details", new { id = 1 }));
     }
     return(View(contentclients));
 }
Пример #2
0
        public ActionResult Edit(int id)
        {
            ContentClients contentclients = db.ContentClients1.Single(c => c.ClientsID == id);

            return(View(contentclients));
        }
Пример #3
0
        //
        // GET: /Clients/Details/5

        public ViewResult Details(int id)
        {
            ContentClients contentclients = db.ContentClients1.Single(c => c.ClientsID == id);

            return(View(contentclients));
        }