Переименовал форму получения списка лекарств

This commit is contained in:
Никита Потапов 2024-05-01 13:04:33 +04:00
parent 01109b2f30
commit 36cb96aad0
3 changed files with 4 additions and 4 deletions

View File

@ -106,7 +106,7 @@ namespace PolyclinicWebAppImplementer.Controllers
[HttpGet] [HttpGet]
[HttpPost] [HttpPost]
public IActionResult GetMedicamentsByDiagnoses() public IActionResult MedicamentsByDiagnoses()
{ {
if (HttpContext.Request.Method == "POST") if (HttpContext.Request.Method == "POST")
{ {

View File

@ -13,12 +13,12 @@
public static (string Url, string Title) Register = ("Register", "Регистрация"); public static (string Url, string Title) Register = ("Register", "Регистрация");
public static (string Url, string Title) Privacy = ("Privacy", "Политика приватности"); public static (string Url, string Title) Privacy = ("Privacy", "Политика приватности");
public static (string Url, string Title) AddRecipeToCourse = ("AddRecipeToCourse", "Привязка рецепта"); 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 (string Url, string Title) DiagnosesReport = ("DiagnosesReport", "Отчет по болезням");
public static List<(string Url, string Title)> MenuItemsOrder = new List<(string Url, string Title)> 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
}; };
} }
} }

View File

@ -1,5 +1,5 @@
@{ @{
ViewBag.SelectedSiteMenuItem = SiteMenuItems.GetMedicamentsByDiagnoses; ViewBag.SelectedSiteMenuItem = SiteMenuItems.MedicamentsByDiagnoses;
} }
<h4>Список лекарств по болезням</h4> <h4>Список лекарств по болезням</h4>
<form class="d-flex flex-column mt-2"> <form class="d-flex flex-column mt-2">