diff --git a/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs b/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs index 551fa8a..a58b615 100644 --- a/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs +++ b/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs @@ -106,7 +106,7 @@ namespace PolyclinicWebAppImplementer.Controllers [HttpGet] [HttpPost] - public IActionResult GetMedicamentsByDiagnoses() + public IActionResult MedicamentsByDiagnoses() { if (HttpContext.Request.Method == "POST") { diff --git a/Polyclinic/PolyclinicWebAppImplementer/SiteMenuItems.cs b/Polyclinic/PolyclinicWebAppImplementer/SiteMenuItems.cs index b821c8a..18c4257 100644 --- a/Polyclinic/PolyclinicWebAppImplementer/SiteMenuItems.cs +++ b/Polyclinic/PolyclinicWebAppImplementer/SiteMenuItems.cs @@ -13,12 +13,12 @@ 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 (string Url, string Title) MedicamentsByDiagnoses = ("MedicamentsByDiagnoses", "Лекарства по болезням"); public static (string Url, string Title) DiagnosesReport = ("DiagnosesReport", "Отчет по болезням"); public static List<(string Url, string Title)> MenuItemsOrder = new List<(string Url, string Title)> { - Index, Courses, Diagnoses, Symptomes, Login, Register, AddRecipeToCourse, GetMedicamentsByDiagnoses, DiagnosesReport + Index, Courses, Diagnoses, Symptomes, Login, Register, AddRecipeToCourse, MedicamentsByDiagnoses, DiagnosesReport }; } } diff --git a/Polyclinic/PolyclinicWebAppImplementer/Views/Home/GetMedicamentsByDiagnoses.cshtml b/Polyclinic/PolyclinicWebAppImplementer/Views/Home/MedicamentsByDiagnoses.cshtml similarity index 94% rename from Polyclinic/PolyclinicWebAppImplementer/Views/Home/GetMedicamentsByDiagnoses.cshtml rename to Polyclinic/PolyclinicWebAppImplementer/Views/Home/MedicamentsByDiagnoses.cshtml index 7b2c33a..5c5b465 100644 --- a/Polyclinic/PolyclinicWebAppImplementer/Views/Home/GetMedicamentsByDiagnoses.cshtml +++ b/Polyclinic/PolyclinicWebAppImplementer/Views/Home/MedicamentsByDiagnoses.cshtml @@ -1,5 +1,5 @@ @{ - ViewBag.SelectedSiteMenuItem = SiteMenuItems.GetMedicamentsByDiagnoses; + ViewBag.SelectedSiteMenuItem = SiteMenuItems.MedicamentsByDiagnoses; }