示例#1
0
        public ActionResult DeleteConfirmed(int id)
        {
            WFBGasLiftData wFBGasLiftData = db.WFBGasLiftData.Find(id);

            db.WFBGasLiftData.Remove(wFBGasLiftData);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
示例#2
0
 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));
 }
示例#3
0
        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));
        }
示例#4
0
        // 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));
        }