BetterCms.Module.Blog.Services.DefaultBlogMLService.BlogHasCategory C# (CSharp) Method

BlogHasCategory() private static method

private static BlogHasCategory ( BlogMLPost blog, string categoryId ) : bool
blog BlogML.Xml.BlogMLPost
categoryId string
return bool
        private static bool BlogHasCategory(BlogMLPost blog, string categoryId)
        {
            for (int j = 0; j < blog.Categories.Count; j++)
            {
                if (blog.Categories[j].Ref == categoryId)
                {
                    return true;
                }
            }
            return false;
        }