public ActionResult DeleteConfirmed(int id) { Litigation_Accounts litigation_Accounts = db.Litigation_Accounts.Find(id); db.Litigation_Accounts.Remove(litigation_Accounts); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "LitigationAccountID,LitigationCaseID,AccountNumber")] Litigation_Accounts litigation_Accounts) { if (ModelState.IsValid) { db.Entry(litigation_Accounts).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(litigation_Accounts)); }
public ActionResult Create([Bind(Include = "LitigationAccountID,LitigationCaseID,AccountNumber")] Litigation_Accounts litigation_Accounts) { if (ModelState.IsValid) { db.Litigation_Accounts.Add(litigation_Accounts); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(litigation_Accounts)); }
// GET: Litigation_Accounts/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Litigation_Accounts litigation_Accounts = db.Litigation_Accounts.Find(id); if (litigation_Accounts == null) { return(HttpNotFound()); } return(View(litigation_Accounts)); }