fixанул

This commit is contained in:
Katanaa Die 2024-05-29 22:00:27 +04:00
parent 17e0fdb0b9
commit bc26bac348
2 changed files with 7 additions and 0 deletions

View File

@ -285,6 +285,7 @@ namespace DoctorApp.Controllers
DrugName = name,
Price = price,
DrugMedicines = a,
DateCreate = DateTime.Now,
DoctorId = APIDoctor.Doctor.Id,
});
Response.Redirect("Drugs");

View File

@ -29,6 +29,9 @@
<th>
Цена
</th>
<th>
Дата создания
</th>
<th>
Удалить лекарство
</th>
@ -50,6 +53,9 @@
@Html.DisplayFor(modelItem =>
item.Price)
</td>
<td>
@Html.DisplayFor(modelItem => item.DateCreate)
</td>
<td>
<form method="post">
<input type="text" title="id" name="id" value="@item.Id" hidden="hidden" />