public ActionResult DeleteConfirmed(int id) { CFBProcessData_GasConsumed cFBProcessData_GasConsumed = db.CFBProcessData_GasConsumed.Find(id); db.CFBProcessData_GasConsumed.Remove(cFBProcessData_GasConsumed); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,GasFlowParameter,GasFlow,ReportDate,UploadTime,TimeStamp,DayOftheWeek")] CFBProcessData_GasConsumed cFBProcessData_GasConsumed) { if (ModelState.IsValid) { db.Entry(cFBProcessData_GasConsumed).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(cFBProcessData_GasConsumed)); }
// GET: CFBProcessData_GasConsumed/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } CFBProcessData_GasConsumed cFBProcessData_GasConsumed = db.CFBProcessData_GasConsumed.Find(id); if (cFBProcessData_GasConsumed == null) { return(HttpNotFound()); } return(View(cFBProcessData_GasConsumed)); }