Exemplo n.º 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            WFBGasAllocation wFBGasAllocation = db.WFBGasAllocations.Find(id);

            db.WFBGasAllocations.Remove(wFBGasAllocation);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "Id,Well,GOR,GAS,ReportDate,UploadTime,TimeStamp,DayOftheWeek")] WFBGasAllocation wFBGasAllocation)
 {
     if (ModelState.IsValid)
     {
         db.Entry(wFBGasAllocation).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(wFBGasAllocation));
 }
Exemplo n.º 3
0
        public ActionResult Create([Bind(Include = "Id,Well,GOR,GAS,ReportDate,UploadTime,TimeStamp,DayOftheWeek")] WFBGasAllocation wFBGasAllocation)
        {
            if (ModelState.IsValid)
            {
                db.WFBGasAllocations.Add(wFBGasAllocation);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(wFBGasAllocation));
        }
Exemplo n.º 4
0
        // GET: WFBGasAllocations/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            WFBGasAllocation wFBGasAllocation = db.WFBGasAllocations.Find(id);

            if (wFBGasAllocation == null)
            {
                return(HttpNotFound());
            }
            return(View(wFBGasAllocation));
        }