public IEnumerable <ISection> GetSections(HttpRequestBase request) { var sections = _sections.ToList(); sections.ForEach(s => s.IsSecureConnection = request.ConnectionIsSecureOrTerminatedSecure()); return(sections); }
public IEnumerable <IPage> GetPagesBySectionName(HttpRequestBase request, string sectionName) { if (!_pagesBySectionDict.ContainsKey(sectionName)) { return(new List <IPage>()); } var pages = _pagesBySectionDict[sectionName].ToList(); pages.ForEach(p => p.IsSecureConnection = request.ConnectionIsSecureOrTerminatedSecure()); return(pages); }