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; }
public Policy() { Category = new Category(); }