public IActionResult Read(string pageName) { var webRootPath = _hostingEnvironment.WebRootPath; var pagePath = System.IO.Path.Combine(webRootPath, $"html//{pageName}.htm"); var model = new BlogPageModel() { PagePath = pagePath }; return(View(model)); }
public MainPageTest() { pageModel = new MainPageModel(); coursesModel = new CoursesPageModel(); graduatesModel = new GraduatesPageModel(); newsModel = new NewsPageModel(); blogModel = new BlogPageModel(); aboutUsModel = new AboutUsPageModel(); contactsModel = new ContactsPageModel(); languageModel = new LanguagePageModel(); faqModel = new FAQPageModel(); privacyPolici = new PrivacyPolicyPageModel(); contactKyivPage = new ContactKyivPage(); contactDneprPage = new ContactDneprPage(); contactPeterburgPage = new ContactPeterburgPage(); contactKharkovPage = new ContactKharkovPage(); coursesDneprPage = new CoursesDneprPage(); coursesKyivPage = new CoursesKyivPage(); coursesBakuPage = new CoursesBakuPage(); coursesPeterburgPage = new CoursesPeterburgPage(); coursesKharkovPage = new CoursesKharkovPage(); uaLanguageSelect = new UaLanguageSelect(); azLanguageSelect = new AzLanguageSelect(); sitePeterburgCourses = new SitePeterburgCourses(); siteKyivCourses = new SiteKyivCourses(); siteDneprCourses = new SiteDneprCourses(); siteKharkovCourses = new SiteKharkovCourses(); siteBakuCourses = new SiteBakuCourses(); articleNewsPage = new ArticleNewsPage(); bioGonzovPage = new BiographyGonzovPage(); }