Exemplo n.º 1
0
    public List<CategoryType> GetEbayCategories(int UserCode)
    {
        EbayServiceBL service = new EbayServiceBL(UserCode);
        List<CategoryType> allEbayCategories = new List<CategoryType>();
        if (service.UserTokens != null)
        {

            foreach (KeyValuePair<int, string> account in service.UserTokens)
            {
                CategoryType[] Categories = service.GetCategories(account.Value.ToString());
                if (Categories != null)
                    allEbayCategories.AddRange(Categories);
            }
            return allEbayCategories.ToList();
        }
        else
            return null;
    }