diff --git a/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs b/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs index f192880..0850100 100644 --- a/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs +++ b/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs @@ -66,6 +66,26 @@ namespace PolyclinicWebAppImplementer.Controllers return View(); } + public IActionResult Privacy() + { + return View(); + } + + public IActionResult Login() + { + return View(); + } + + public IActionResult Register() + { + return View(); + } + + public IActionResult MyPage() + { + return View(); + } + [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] public IActionResult Error() { diff --git a/Polyclinic/PolyclinicWebAppImplementer/SiteMenuItems.cs b/Polyclinic/PolyclinicWebAppImplementer/SiteMenuItems.cs index cd92b6b..877bdfd 100644 --- a/Polyclinic/PolyclinicWebAppImplementer/SiteMenuItems.cs +++ b/Polyclinic/PolyclinicWebAppImplementer/SiteMenuItems.cs @@ -9,10 +9,14 @@ public static (string Url, string Title) Symptom = ("Symptom", "Симптом"); public static (string Url, string Title) Diagnose = ("Diagnose", "Болезнь"); public static (string Url, string Title) Course = ("Course", "Курс"); + public static (string Url, string Title) Login = ("Login", "Вход"); + public static (string Url, string Title) Register = ("Register", "Регистрация"); + public static (string Url, string Title) MyPage = ("MyPage", "Личный кабинет"); + public static (string Url, string Title) Privacy = ("Privacy", "Политика приватности"); public static List<(string Url, string Title)> MenuItemsOrder = new List<(string Url, string Title)> { - Index, Courses, Diagnoses, Symptomes + Index, Courses, Diagnoses, Symptomes, Login, Register, MyPage }; } } diff --git a/Polyclinic/PolyclinicWebAppImplementer/Views/Home/Login.cshtml b/Polyclinic/PolyclinicWebAppImplementer/Views/Home/Login.cshtml new file mode 100644 index 0000000..9948ff3 --- /dev/null +++ b/Polyclinic/PolyclinicWebAppImplementer/Views/Home/Login.cshtml @@ -0,0 +1,3 @@ +@{ + ViewBag.SelectedSiteMenuItem = SiteMenuItems.Login; +} diff --git a/Polyclinic/PolyclinicWebAppImplementer/Views/Home/MyPage.cshtml b/Polyclinic/PolyclinicWebAppImplementer/Views/Home/MyPage.cshtml new file mode 100644 index 0000000..123a471 --- /dev/null +++ b/Polyclinic/PolyclinicWebAppImplementer/Views/Home/MyPage.cshtml @@ -0,0 +1,3 @@ +@{ + ViewBag.SelectedSiteMenuItem = SiteMenuItems.MyPage; +} diff --git a/Polyclinic/PolyclinicWebAppImplementer/Views/Home/Privacy.cshtml b/Polyclinic/PolyclinicWebAppImplementer/Views/Home/Privacy.cshtml index af4fb19..ce65fcc 100644 --- a/Polyclinic/PolyclinicWebAppImplementer/Views/Home/Privacy.cshtml +++ b/Polyclinic/PolyclinicWebAppImplementer/Views/Home/Privacy.cshtml @@ -1,6 +1,6 @@ @{ - ViewData["Title"] = "Privacy Policy"; + ViewBag.SelectedSiteMenuItem = SiteMenuItems.Privacy; } -

@ViewData["Title"]

+

Политика приватности

-

Use this page to detail your site's privacy policy.

+

Здесь нет никакой приватности

diff --git a/Polyclinic/PolyclinicWebAppImplementer/Views/Home/Register.cshtml b/Polyclinic/PolyclinicWebAppImplementer/Views/Home/Register.cshtml index 913a04a..6a21190 100644 --- a/Polyclinic/PolyclinicWebAppImplementer/Views/Home/Register.cshtml +++ b/Polyclinic/PolyclinicWebAppImplementer/Views/Home/Register.cshtml @@ -1,5 +1,5 @@ @{ - ViewData["Title"] = "Register"; + ViewBag.SelectedSiteMenuItem = SiteMenuItems.Register; }

Регистрация