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