Ejemplo n.º 1
0
        public object Search([FromBody] dynamic p)
        {
            //var token = Account.FromSession((string)p.sessionId).Status.Token;
            var current = FindingClient.GetCurrentItems((string)p.searchTerm, (int)p.categoryId);

            return(new
            {
                Completed = FindingClient.GetCompletedItems((string)p.searchTerm, (int)p.categoryId),
                CurrentBuyItNow = current.Where(a => a.Type != "Auction").ToArray(),
                CurrentAuction = current.Where(a => a.Type == "Auction").ToArray()
            });
        }
Ejemplo n.º 2
0
 public CategoryListItem[] Search([FromBody] dynamic p) => FindingClient.FindCategories((string)p.eBayToken, (string)p.searchTerm);