diff --git a/VetClinic/PharmacistApp/Controllers/HomeController.cs b/VetClinic/PharmacistApp/Controllers/HomeController.cs
index e62fbd8..a149f3c 100644
--- a/VetClinic/PharmacistApp/Controllers/HomeController.cs
+++ b/VetClinic/PharmacistApp/Controllers/HomeController.cs
@@ -557,7 +557,7 @@ View(res);
}
[HttpPost]
- public void DeleteGuidance(int guidance, int service, string text)
+ public void DeleteGuidance(int guidance)
{
if (APIPharmacist.Pharmacist == null)
{
diff --git a/VetClinic/PharmacistApp/Views/Home/DeleteGuidance.cshtml b/VetClinic/PharmacistApp/Views/Home/DeleteGuidance.cshtml
index 5721d3b..f0df23a 100644
--- a/VetClinic/PharmacistApp/Views/Home/DeleteGuidance.cshtml
+++ b/VetClinic/PharmacistApp/Views/Home/DeleteGuidance.cshtml
@@ -8,7 +8,7 @@
diff --git a/VetClinic/PharmacistApp/Views/Home/Guidances.cshtml b/VetClinic/PharmacistApp/Views/Home/Guidances.cshtml
index c30d534..ced9878 100644
--- a/VetClinic/PharmacistApp/Views/Home/Guidances.cshtml
+++ b/VetClinic/PharmacistApp/Views/Home/Guidances.cshtml
@@ -27,6 +27,9 @@
Дата
|
+
+ Услуга
+ |
Текст
|
@@ -44,6 +47,10 @@
@Html.DisplayFor(modelItem =>
item.Date)
+
+ @Html.DisplayFor(modelItem =>
+ item.ServiceName)
+ |
@Html.DisplayFor(modelItem =>
item.Text)
diff --git a/VetClinic/PharmacistApp/Views/Home/UpdateGuidance.cshtml b/VetClinic/PharmacistApp/Views/Home/UpdateGuidance.cshtml
index 49ff979..f11ef9a 100644
--- a/VetClinic/PharmacistApp/Views/Home/UpdateGuidance.cshtml
+++ b/VetClinic/PharmacistApp/Views/Home/UpdateGuidance.cshtml
@@ -15,7 +15,12 @@
Услуга:
-
+
@@ -38,6 +43,7 @@ btn-primary" />
function check() {
var guidance = $('#guidance').val();
+ $("#service option:selected").removeAttr("selected");
if (guidance) {
$.ajax({
method: "GET",
diff --git a/VetClinic/PharmacistApp/Views/Shared/_Layout.cshtml b/VetClinic/PharmacistApp/Views/Shared/_Layout.cshtml
index fde4176..1e4bdbe 100644
--- a/VetClinic/PharmacistApp/Views/Shared/_Layout.cshtml
+++ b/VetClinic/PharmacistApp/Views/Shared/_Layout.cshtml
@@ -13,7 +13,7 @@
|