public ActionResult DeleteConfirmed(int id) { Report_Total report_Total = db.Report_Total.Find(id); db.Report_Total.Remove(report_Total); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,Total_Income,Till_Date")] Report_Total report_Total) { if (ModelState.IsValid) { db.Entry(report_Total).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(report_Total)); }
public ActionResult Create([Bind(Include = "Id,Total_Income,Till_Date")] Report_Total report_Total) { if (ModelState.IsValid) { db.Report_Total.Add(report_Total); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(report_Total)); }
// GET: Report_Total/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Report_Total report_Total = db.Report_Total.Find(id); if (report_Total == null) { return(HttpNotFound()); } return(View(report_Total)); }