private List <int> GetSubCategoryTreeIds() { List <int> subs = new List <int>(); // Add current category ID subs.Add(Id); // Add SubCategories Ids SubCategories.ForEach(s => subs.Add(s.Id)); return(subs); }