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); }
/// <summary> /// Deprecated Method for adding a new object to the ContentClients1 EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToContentClients1(ContentClients contentClients) { base.AddObject("ContentClients1", contentClients); }
/// <summary> /// Create a new ContentClients object. /// </summary> /// <param name="clientsID">Initial value of the ClientsID property.</param> public static ContentClients CreateContentClients(global::System.Int32 clientsID) { ContentClients contentClients = new ContentClients(); contentClients.ClientsID = clientsID; return contentClients; }