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)); }
public ActionResult Edit(int id) { ContentClients contentclients = db.ContentClients1.Single(c => c.ClientsID == id); return(View(contentclients)); }
// // GET: /Clients/Details/5 public ViewResult Details(int id) { ContentClients contentclients = db.ContentClients1.Single(c => c.ClientsID == id); return(View(contentclients)); }