public ActionResult DeleteConfirmed(int id) { deviceworkinginfoSet deviceworkinginfoSet = db.deviceworkinginfoSet.Find(id); db.deviceworkinginfoSet.Remove(deviceworkinginfoSet); db.SaveChanges(); return(RedirectToAction("Index")); }
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)); }
// 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)); }