Beispiel #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            tblAssertion tblAssertion = db.tblAssertions.Find(id);

            db.tblAssertions.Remove(tblAssertion);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Beispiel #2
0
 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));
 }
Beispiel #3
0
        // 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));
        }