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