public ActionResult Edit([Bind(Include = "macAddressID,issuedDate,studentResponsible")] Module module) { if (ModelState.IsValid) { db.Entry(module).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(module)); }
public ActionResult Edit([Bind(Include = "userID,firstName,lastName,password")] User user) { if (ModelState.IsValid) { db.Entry(user).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(user)); }