Время час ночи. Артур пошёл гулять🔞
This commit is contained in:
parent
9cb9b92de6
commit
8149cd91a0
@ -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("Сумма")]
|
||||
|
@ -62,6 +62,7 @@ namespace VeterinaryDatabaseImplement.Models
|
||||
Sum = Sum,
|
||||
OwnerId = OwnerId,
|
||||
DrugId = DrugId,
|
||||
DrugName = Drug?.DrugName ?? string.Empty,
|
||||
DateCreate = DateCreate
|
||||
};
|
||||
}
|
||||
|
@ -370,7 +370,7 @@ namespace VeterinaryShowOwnerApp.Controllers
|
||||
DateCreate = DateTime.Now,
|
||||
Count = count
|
||||
});
|
||||
Response.Redirect("Index");
|
||||
Response.Redirect("Purchases");
|
||||
}
|
||||
// с какого хера ты не работаешь
|
||||
[HttpPost]
|
||||
|
@ -46,7 +46,7 @@
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem =>
|
||||
item.DrugId)
|
||||
item.DrugName)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem =>
|
||||
|
Loading…
Reference in New Issue
Block a user