Пример #1
0
 public ActionResult EditRole([Bind(Include = "Id,Name")] AspNetRoles aspNetRoles)
 {
     if (ModelState.IsValid)
     {
         db.Entry(aspNetRoles).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("RoleList"));
     }
     return(View(aspNetRoles));
 }