Exemplo n.º 1
0
 // GET: Home/Delete/id
 public ActionResult Delete(int id)
 {
     using (var db = new LabStorageEntities())
     {
         return(View(db.records.Where(m => m.id == id).FirstOrDefault()));
     }
 }
Exemplo n.º 2
0
 // GET: Home/UseItem/id
 public ActionResult UseItem()
 {
     using (var db = new LabStorageEntities())
     {
         return(View());
     }
 }