From 0f46fbef9f7124463f9f4619d271e2fe9c6adf99 Mon Sep 17 00:00:00 2001 From: Programmist73 Date: Tue, 28 Feb 2023 00:13:54 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=BA=D0=B8=D0=B5=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=BA=D0=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Implements/OrderStorage.cs | 2 +- .../BlacksmithWorkshopDatabaseImplement/Models/Order.cs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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)