示例#1
0
 public void SetBuyersList()
 {
     BuyersList = new BuyerCollection();
     for (int i = 0; i < App.MainPageVM.Buyers.Count; i++)
     {
         BuyersList.Add((Buyer)App.MainPageVM.Buyers[i].Clone());
     }
     BuyersList.ConcatSame();
 }
        public string GetCurrentUserBuyers(HttpListenerContext ct, ActionInfo hi)
        {
            BuyerCollection Buyers = new BuyerCollection();
            Buyer           buyer  = new Buyer()
            {
                Id = "1", Name = "jag", ExternalId = "2"
            };

            Buyers.Add(buyer);

            return(GetResponseString <BuyerCollection>(Buyers, ct));
        }