diff --git a/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs b/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs index 13ecb68..1ffe34d 100644 --- a/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs +++ b/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs @@ -104,6 +104,20 @@ namespace PolyclinicWebAppImplementer.Controllers } } + [HttpGet] + [HttpPost] + public IActionResult GetMedicamentsByDiagnoses() + { + if (HttpContext.Request.Method == "POST") + { + return View(); + } + else + { + 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 17a027e..aac6884 100644 --- a/Polyclinic/PolyclinicWebAppImplementer/SiteMenuItems.cs +++ b/Polyclinic/PolyclinicWebAppImplementer/SiteMenuItems.cs @@ -13,10 +13,11 @@ public static (string Url, string Title) Register = ("Register", "Регистрация"); public static (string Url, string Title) Privacy = ("Privacy", "Политика приватности"); public static (string Url, string Title) AddRecipeToCourse = ("AddRecipeToCourse", "Привязка рецепта"); + public static (string Url, string Title) GetMedicamentsByDiagnoses = ("GetMedicamentsByDiagnoses", "Лекарства по болезням"); public static List<(string Url, string Title)> MenuItemsOrder = new List<(string Url, string Title)> { - Index, Courses, Diagnoses, Symptomes, Login, Register, AddRecipeToCourse + Index, Courses, Diagnoses, Symptomes, Login, Register, AddRecipeToCourse, GetMedicamentsByDiagnoses }; } } diff --git a/Polyclinic/PolyclinicWebAppImplementer/Views/Home/GetMedicamentsByDiagnoses.cshtml b/Polyclinic/PolyclinicWebAppImplementer/Views/Home/GetMedicamentsByDiagnoses.cshtml new file mode 100644 index 0000000..7b2c33a --- /dev/null +++ b/Polyclinic/PolyclinicWebAppImplementer/Views/Home/GetMedicamentsByDiagnoses.cshtml @@ -0,0 +1,40 @@ +@{ + ViewBag.SelectedSiteMenuItem = SiteMenuItems.GetMedicamentsByDiagnoses; +} +