public ActionResult DeleteConfirmed(int id) { AllPhoneBill allPhoneBill = db.MyAllPhoneBillContext.Find(id); db.MyAllPhoneBillContext.Remove(allPhoneBill); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,ACCT_ID,CALLING_NUMBER,CALLED_NUMBER,CALL_DURATION,CALL_DATE,CALL_TIME,CALL_COST,TAX")] AllPhoneBill allPhoneBill) { if (ModelState.IsValid) { db.Entry(allPhoneBill).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(allPhoneBill)); }
public ActionResult Create([Bind(Include = "Id,ACCT_ID,CALLING_NUMBER,CALLED_NUMBER,CALL_DURATION,CALL_DATE,CALL_TIME,CALL_COST,TAX")] AllPhoneBill allPhoneBill) { if (ModelState.IsValid) { db.MyAllPhoneBillContext.Add(allPhoneBill); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(allPhoneBill)); }
// GET: AllPhoneBills/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } AllPhoneBill allPhoneBill = db.MyAllPhoneBillContext.Find(id); if (allPhoneBill == null) { return(HttpNotFound()); } return(View(allPhoneBill)); }