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() }); }
public CategoryListItem[] Search([FromBody] dynamic p) => FindingClient.FindCategories((string)p.eBayToken, (string)p.searchTerm);