Exemple #1
0
 /// <summary>
 ///     添加用户到角色
 /// </summary>
 /// <param name="roleIds"></param>
 /// <param name="userId"></param>
 /// <returns></returns>
 public void AddRoleToUser(string userIds, string roleIds)
 {
     string[] id = userIds.Split(',');
     for (int i = 0; i < id.Length; i++)
     {
         _userDB.AddRoleToUser(Convert.ToInt32(id[i]), roleIds);
     }
 }