/// <inheritdoc /> public bool IsHidden(INodeEntity node) { var helper = new UCodeFirstHelper(); var content = helper.TypedContent(node.Id); return(content is FormFolderPageModel | content is FormCategoryPageModel | content is FormPageModel | content is ConfigurationPageModel | content is ErrorPageModel); }
/// <inheritdoc /> public bool IsHidden(INodeEntity node) { var helper = new UCodeFirstHelper(); var config = helper.TypedContent(node.Id) as ISitemapConfiguration; if (config != null) { return(!config.ShowInSitemap); } return(false); }
/// <inheritdoc /> public IEnumerable <EventPageModel> GetEventsForMember(int memberId) { var sql = new Sql().Select("*") .From <ClaremontEvent>(SqlSyntax) .Where("member_id = @0", memberId); var participants = Database.Query <ClaremontEvent>(sql).ToList(); if (participants.Any()) { var helper = new UCodeFirstHelper(); foreach (var participant in participants) { yield return(helper.TypedContent <EventPageModel>(participant.EventId)); } } }