Esempio n. 1
0
 /// <summary>
 /// 获取指定会员下的所有会员,已排序
 /// </summary>
 public static ReturnData GetAgents(int id)
 {
     ReturnData data = new ReturnData();
     List<TAgents> listAgent = new List<TAgents>();
     List<int> listIds = new List<int>();
     listIds.Add(id);
     AgentMethod(id, ref listAgent, ref listIds);
     listAgent.Add(CacheData.Agents.Where(a => a.ID == id).FirstOrDefault());
     data.listAgent = listAgent.OrderBy(a => a.Account).ToList();
     data.listIds = listIds;
     return data;
 }
Esempio n. 2
0
 /// <summary>
 /// 获取指定会员下的所有用户,已排序
 /// </summary>
 public static ReturnData GetUsers(int id)
 {
     ReturnData data = new ReturnData();
     List<TRealAccounts> list = new List<TRealAccounts>();
     List<int> ids = new List<int>();
     UserMethod(id, ref list, ref ids);
     data.listAccount = list.OrderBy(a => a.Account).ToList();
     data.listIds = ids;
     return data;
 }