Exemple #1
0
 public void UpdateSysRoleSysUser(string roleId, string[] userIds)
 {
     using (DBContainer db = new DBContainer())
     {
         db.P_Sys_DeleteSysRoleSysUserByRoleId(roleId);
         foreach (string userid in userIds)
         {
             if (!string.IsNullOrWhiteSpace(userid))
             {
                 db.P_Sys_UpdateSysRoleSysUser(roleId, userid);
             }
         }
         db.SaveChanges();
     }
 }