예제 #1
0
 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));
 }
예제 #2
0
 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));
 }