public ActionResult Create([Bind(Include = "ID,ID_user,ID_pc,Time_login,Time_logout")] Logs logs) { if (ModelState.IsValid) { db.Logs.Add(logs); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(logs)); }
public ActionResult Create([Bind(Include = "ID,ID_user,ID_pc,Auth_key,Device")] Auths auths) { if (ModelState.IsValid) { db.Auths.Add(auths); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(auths)); }
public ActionResult Create([Bind(Include = "ID,PC_name,Lock_status")] Computers computers) { if (ModelState.IsValid) { db.Computers.Add(computers); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(computers)); }
public ActionResult Create([Bind(Include = "ID,Username,Type")] Users users) { if (ModelState.IsValid) { db.Users.Add(users); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(users)); }