Exemplo n.º 1
0
        public List <Category> ReadCategory()
        {
            var categoryStore = new CategoryStore()
            {
                Path = categoryPath
            };
            var categoryList = categoryStore.GetCollection();

            return(categoryList);
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            var categoryStore = new CategoryStore()
            {
                Path = categoryPath
            };
            var categorytList = categoryStore.GetCollection();


            foreach (var item in categorytList)
            {
                Console.WriteLine(item.Id + " " + item.Weight);
            }
        }