示例#1
0
 public void AddNewCategory(string categoryName)
 {
     Category category = new Category();
     category.categoryName = categoryName;
     _categories.Add(category);
 }
        //*********************Lara****************************************
        //*****************************************************************
        public List<Category> GetAllCategories()
        {
            List<Category> catList = new List<Category>();
            foreach (var p in _polInfo)
            {
                Category cats = new Category()
                {
                    CatId = p.PolId,
                   // CatId = p.Category.Distinct()

                    CatName = p.CatName
                };
                catList.Add(cats);
            }
            return catList;
        }
示例#3
0
 public Policy()
 {
     Category = new Category();
 }