public ActionResult Edit([Bind(Include = "Id,Name")] AspNetRoles aspNetRoles) { if (ModelState.IsValid) { db.Entry(aspNetRoles).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(aspNetRoles)); }
public ActionResult Edit([Bind(Include = "Id,Email,EmailConfirmed,PasswordHash,SecurityStamp,PhoneNumber,PhoneNumberConfirmed,TwoFactorEnabled,LockoutEndDateUtc,LockoutEnabled,AccessFailedCount,UserName")] AspNetUsers aspNetUsers) { if (ModelState.IsValid) { db.Entry(aspNetUsers).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(aspNetUsers)); }