diff --git a/BlacksmithWorkshop/BlacksmithWorkshopDatabaseImplement/Implements/OrderStorage.cs b/BlacksmithWorkshop/BlacksmithWorkshopDatabaseImplement/Implements/OrderStorage.cs index 67dceeb..8dfa776 100644 --- a/BlacksmithWorkshop/BlacksmithWorkshopDatabaseImplement/Implements/OrderStorage.cs +++ b/BlacksmithWorkshop/BlacksmithWorkshopDatabaseImplement/Implements/OrderStorage.cs @@ -85,7 +85,7 @@ namespace BlacksmithWorkshopDatabaseImplement.Implements Status = x.Status, DateCreate = x.DateCreate, DateImplement = x.DateImplement, - //ManufactureName = x.Manufacture.ManufactureName //тут не будет работать + ManufactureName = x.Manufacture.ManufactureName }) .ToList(); } diff --git a/BlacksmithWorkshop/BlacksmithWorkshopDatabaseImplement/Models/Order.cs b/BlacksmithWorkshop/BlacksmithWorkshopDatabaseImplement/Models/Order.cs index e3ad019..dd91c74 100644 --- a/BlacksmithWorkshop/BlacksmithWorkshopDatabaseImplement/Models/Order.cs +++ b/BlacksmithWorkshop/BlacksmithWorkshopDatabaseImplement/Models/Order.cs @@ -27,6 +27,9 @@ namespace BlacksmithWorkshopDatabaseImplement.Models public DateTime? DateImplement { get; private set; } + //для передачи названия изделия + public virtual Manufacture Manufacture { get; set; } + public static Order? Create(OrderBindingModel model) { if (model == null)