public List <Category> ReadCategory() { var categoryStore = new CategoryStore() { Path = categoryPath }; var categoryList = categoryStore.GetCollection(); return(categoryList); }
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); } }