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)); }
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)); }
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)); }
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)); }