Example #1
0
        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"));
        }
Example #2
0
 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));
 }
Example #3
0
        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));
        }
Example #4
0
        // 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));
        }