public ActionResult DeleteConfirmed(int id) { vRSCollectible vRSCollectible = db.vRSCollectibles.Find(id); db.vRSCollectibles.Remove(vRSCollectible); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "IDAdmission,IDResident,Resident,AdmissionDate,TerminationDate,TreatmentFee,TotalBilling,TotalPaid,OverallBalance,IsActive,LastPaymentInfo")] vRSCollectible vRSCollectible) { if (ModelState.IsValid) { db.Entry(vRSCollectible).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(vRSCollectible)); }
// GET: vRSCollectibles/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } vRSCollectible vRSCollectible = db.vRSCollectibles.Find(id); if (vRSCollectible == null) { return(HttpNotFound()); } return(View(vRSCollectible)); }