Ejemplo n.º 1
0
 public Boolean ChildrenContainsCatalog(Int32 child)
 {
     return(Catalog2.Count(c => c.Cat_Id == child) > 0 ||
            Catalog2.ToList().Count(c => c.ChildrenContainsCatalog(child)) > 0);
 }
Ejemplo n.º 2
0
 public Boolean ChildrenContainsCatalog(List <Int32> childs)
 {
     return(Catalog2.Count(c => childs.Count(cd => cd == c.Cat_Id) > 0) > 0 ||
            Catalog2.ToList().Count(c => c.ChildrenContainsCatalog(childs)) > 0);
 }