Время час ночи. Артур пошёл гулять🔞

This commit is contained in:
Yunusov_Niyaz 2024-05-26 01:01:43 +04:00
parent 9cb9b92de6
commit 8149cd91a0
4 changed files with 5 additions and 3 deletions

View File

@ -8,8 +8,9 @@ namespace VeterinaryContracts.ViewModels
public int Id { get; set; }
[DisplayName("Хозяин")]
public int OwnerId { get; set; }
[DisplayName("Лекарство")]
public int DrugId { get; set; }
[DisplayName("Лекарство")]
public string DrugName { get; set; } = string.Empty;
[DisplayName("Количество")]
public int Count { get; set; }
[DisplayName("Сумма")]

View File

@ -62,6 +62,7 @@ namespace VeterinaryDatabaseImplement.Models
Sum = Sum,
OwnerId = OwnerId,
DrugId = DrugId,
DrugName = Drug?.DrugName ?? string.Empty,
DateCreate = DateCreate
};
}

View File

@ -370,7 +370,7 @@ namespace VeterinaryShowOwnerApp.Controllers
DateCreate = DateTime.Now,
Count = count
});
Response.Redirect("Index");
Response.Redirect("Purchases");
}
// с какого хера ты не работаешь
[HttpPost]

View File

@ -46,7 +46,7 @@
</td>
<td>
@Html.DisplayFor(modelItem =>
item.DrugId)
item.DrugName)
</td>
<td>
@Html.DisplayFor(modelItem =>