public ActionResult DeleteConfirmed(int id) { MUCTBill_Records mUCTBill_Records = db.MUCTBill_Records.Find(id); db.MUCTBill_Records.Remove(mUCTBill_Records); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "MUCTBillID,ConsumerNo,Zone,Town,Employee,Createdon,createdby")] MUCTBill_Records mUCTBill_Records) { if (ModelState.IsValid) { db.Entry(mUCTBill_Records).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(mUCTBill_Records)); }
public ActionResult Create([Bind(Include = "MUCTBillID,ConsumerNo,Zone,Town,Employee,Createdon,createdby")] MUCTBill_Records mUCTBill_Records) { if (ModelState.IsValid) { db.MUCTBill_Records.Add(mUCTBill_Records); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(mUCTBill_Records)); }
// GET: Admin/MUCTBill_Records/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } MUCTBill_Records mUCTBill_Records = db.MUCTBill_Records.Find(id); if (mUCTBill_Records == null) { return(HttpNotFound()); } return(View(mUCTBill_Records)); }