/// <summary>
        /// Find posts by tags.
        /// </summary>
        /// <param name="tag"></param>
        /// <returns></returns>
        public ActionResult Tags(string tag)
        {
            SetPageTitle(tag);
            var items      = TagHelper.GetByTags <Event>(tag, (ids) => Query <Event> .New().Where(e => e.Id).In <int>(ids).And(p => p.IsPublished).Is(true));
            var pagedItems = new PagedList <Event>(1, 10000, items.Count, items);

            return(BuildActionResult(new EntityActionResult(true, "", null, pagedItems, true, true), "Pages/List"));
        }
        /// <summary>
        /// Gets the by tags.
        /// </summary>
        /// <param name="tag">The tag.</param>
        /// <returns></returns>
        public static IList <Post> GetByTags(string tag)
        {
            var posts = TagHelper.GetByTags <Post>(tag, (ids) => Query <Post> .New().Where(p => p.Id).In <int>(ids).And(p => p.IsPublished).Is(true));

            return(posts);
        }