From 6728431410673f0779d36df8c610666d505f2cf5 Mon Sep 17 00:00:00 2001 From: Zyzf Date: Fri, 17 Feb 2023 15:55:38 +0400 Subject: [PATCH] fixes --- .../Implements/OrderStorage.cs | 12 ------------ .../BlacksmithListImplement/Models/Order.cs | 5 ----- 2 files changed, 17 deletions(-) diff --git a/BlacksmithWorkshop/BlacksmithListImplement/Implements/OrderStorage.cs b/BlacksmithWorkshop/BlacksmithListImplement/Implements/OrderStorage.cs index 004c4af..94eef7c 100644 --- a/BlacksmithWorkshop/BlacksmithListImplement/Implements/OrderStorage.cs +++ b/BlacksmithWorkshop/BlacksmithListImplement/Implements/OrderStorage.cs @@ -102,17 +102,5 @@ namespace BlacksmithWorkshopListImplement.Implements } return null; } - //private OrderViewModel AttachManufactureName(OrderViewModel model) - //{ - // foreach (var manufacture in _source.Manufactures) - // { - // if (manufacture.Id == model.ManufactureId) - // { - // model.ManufactureName = manufacture.ManufactureName; - // return model; - // } - // } - // return model; - //} } } diff --git a/BlacksmithWorkshop/BlacksmithListImplement/Models/Order.cs b/BlacksmithWorkshop/BlacksmithListImplement/Models/Order.cs index a4671a0..87b93e2 100644 --- a/BlacksmithWorkshop/BlacksmithListImplement/Models/Order.cs +++ b/BlacksmithWorkshop/BlacksmithListImplement/Models/Order.cs @@ -48,12 +48,7 @@ namespace BlacksmithWorkshopListImplement.Models { return; } - ManufactureId = model.ManufactureId; - ManufactureName = model.ManufactureName; - Count = model.Count; - Sum = model.Sum; Status = model.Status; - DateCreate = model.DateCreate; DateImplement = model.DateImplement; } public OrderViewModel GetViewModel => new()