Example #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            deviceworkinginfoSet deviceworkinginfoSet = db.deviceworkinginfoSet.Find(id);

            db.deviceworkinginfoSet.Remove(deviceworkinginfoSet);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Example #2
0
 public ActionResult Edit([Bind(Include = "Id,runningstatus,mainspeed,errorcount,totalcount,buildtime,isruning,isfinished")] deviceworkinginfoSet deviceworkinginfoSet)
 {
     if (ModelState.IsValid)
     {
         db.Entry(deviceworkinginfoSet).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(deviceworkinginfoSet));
 }
Example #3
0
        // GET: deviceworkinginfoSets/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            deviceworkinginfoSet deviceworkinginfoSet = db.deviceworkinginfoSet.Find(id);

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