public ActionResult DeleteConfirmed(int id) { ExternalUsers externalusers = db.ExternalUsers.Single(e => e.ID == id); db.ExternalUsers.DeleteObject(externalusers); db.SaveChanges(); return(RedirectToAction("Index")); }
// // GET: /ExternalUsers/Delete/5 public ActionResult Delete(int id = 0) { ExternalUsers externalusers = db.ExternalUsers.Single(e => e.ID == id); if (externalusers == null) { return(HttpNotFound()); } return(View(externalusers)); }
public ActionResult Edit(ExternalUsers externalusers) { if (ModelState.IsValid) { db.ExternalUsers.Attach(externalusers); db.ObjectStateManager.ChangeObjectState(externalusers, System.Data.EntityState.Modified); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(externalusers)); }
public ActionResult Create(ExternalUsers externalusers) { if (ModelState.IsValid) { db.ExternalUsers.AddObject(externalusers); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(externalusers)); }