public ActionResult RoleDelete(string id)
        {
            SimpleRoleProvider simpleRoles = Roles.Provider as SimpleRoleProvider;

            simpleRoles.DeleteRole(id, false);
            return(RedirectToAction("RoleList"));
        }
        public ActionResult RoleEdit(RoleModel model)
        {
            SimpleRoleProvider simpleRoles = Roles.Provider as SimpleRoleProvider;
            var users = simpleRoles.GetUsersInRole(model.PrevName);

            simpleRoles.RemoveUsersFromRoles(users, new string[] { model.PrevName });
            simpleRoles.DeleteRole(model.PrevName, false);
            simpleRoles.CreateRole(model.Name);
            simpleRoles.AddUsersToRoles(users, new string[] { model.Name });

            return(RedirectToAction("RoleList"));
        }