public bool IsCategorySubcategoryOf(string categoryId, string[] excludingCategoryIds)
        {
            var retVal = TargetEntry.InCategories(new string[] { categoryId });

            return(retVal && TargetEntry.ExcludeCategories(excludingCategoryIds));
        }
 public static bool InCategory(this TargetEntry target, string categoryId)
 {
     return(target.InCategories(new string[] { categoryId }));
 }