Esempio n. 1
0
 public ActionResult Edit([Bind(Include = "ID,ID_user,ID_pc,Time_login,Time_logout")] Logs logs)
 {
     if (ModelState.IsValid)
     {
         db.Entry(logs).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(logs));
 }
Esempio n. 2
0
 public ActionResult Edit([Bind(Include = "ID,ID_user,ID_pc,Auth_key,Device")] Auths auths)
 {
     if (ModelState.IsValid)
     {
         db.Entry(auths).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(auths));
 }
Esempio n. 3
0
 public ActionResult Edit([Bind(Include = "ID,PC_name,Lock_status")] Computers computers)
 {
     if (ModelState.IsValid)
     {
         db.Entry(computers).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(computers));
 }
Esempio n. 4
0
 public ActionResult Edit([Bind(Include = "ID,Username,Type")] Users users)
 {
     if (ModelState.IsValid)
     {
         db.Entry(users).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(users));
 }