public string[] GetPageLines() { var page = _pageData.GetPageData(); var contentLines = page.Content .OrderByDescending(tuple => tuple.Item2) .Select(content => _treater.Treat(content.Item1)); return(new[] { _treater.Treat(page.HeaderData), } .Concat(contentLines) .Concat(new[] { page.FooterData }) .ToArray()); }
public IActionResult Page(int sectionAndSubsectionId, int page = 1) { var model = PageData.GetPageData(sectionAndSubsectionId, page); return(View(model)); }