public ActionResult DeleteConfirmed(int id) { tblAssertion tblAssertion = db.tblAssertions.Find(id); db.tblAssertions.Remove(tblAssertion); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "IDAssertion,Description,IDAdmission,AssertionDate,IDAssertionCategory,Qty,Price,Markup,MarkupValue,SubTotal,Notes,IDChargeToCodep,PostedDate")] tblAssertion tblAssertion) { if (ModelState.IsValid) { db.Entry(tblAssertion).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tblAssertion)); }
// GET: Assertions/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } tblAssertion tblAssertion = db.tblAssertions.Find(id); if (tblAssertion == null) { return(HttpNotFound()); } return(View(tblAssertion)); }