From da4de1eb95817084ba4cd5695e3d6c198657cc63 Mon Sep 17 00:00:00 2001 From: the Date: Mon, 24 Jun 2024 10:40:14 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5/=D0=BA=D0=BE=D0=BC=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=BE?= =?UTF-8?q?=D1=88=D0=B8=D0=B1=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BusinessLogic/BusinessLogic/PurchaseLogic.cs | 29 ++++++++++---------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/BusinessLogic/BusinessLogic/PurchaseLogic.cs b/BusinessLogic/BusinessLogic/PurchaseLogic.cs index 1d46e64..6dab37d 100644 --- a/BusinessLogic/BusinessLogic/PurchaseLogic.cs +++ b/BusinessLogic/BusinessLogic/PurchaseLogic.cs @@ -37,8 +37,8 @@ namespace BusinessLogic.BusinessLogic { throw new Exception("Insert operation failed."); } - - return PurchaseConverter.ToView(purchase); + throw new NotImplementedException(); + //return PurchaseConverter.ToView(purchase); } public PurchaseViewModel Delete(PurchaseSearchModel model) @@ -51,9 +51,9 @@ namespace BusinessLogic.BusinessLogic { throw new Exception("Delete operation failed."); } - - return PurchaseConverter.ToView(purchase); - } + throw new NotImplementedException(); + //return PurchaseConverter.ToView(purchase); + } public PurchaseViewModel ReadElement(PurchaseSearchModel model) { @@ -66,23 +66,23 @@ namespace BusinessLogic.BusinessLogic throw new ElementNotFoundException(); } _logger.LogInformation("ReadElement find. Id: {0}", purchase.Id); - - return PurchaseConverter.ToView(purchase); - } + throw new NotImplementedException(); + //return PurchaseConverter.ToView(purchase); + } public IEnumerable ReadElements(PurchaseSearchModel? model) { _logger.LogInformation("ReadList. Id: {Id}", model?.Id); - var purchase_list = _purchaseStorage.GetList(model); + var purchase_list = _purchaseStorage.GetFullList(model); if (purchase_list is null || purchase_list.Count() == 0) { _logger.LogWarning("ReadList return null list"); return []; } _logger.LogInformation("ReadList. Count: {Count}", purchase_list.Count()); - - return purchase_list.Select(PurchaseConverter.ToView); - } + throw new NotImplementedException(); + //return purchase_list.Select(PurchaseConverter.ToView); + } public PurchaseViewModel Update(PurchaseBindingModel model) { @@ -93,7 +93,8 @@ namespace BusinessLogic.BusinessLogic { throw new Exception("Update operation failed."); } - return PurchaseConverter.ToView(purchase); - } + throw new NotImplementedException(); + //return PurchaseConverter.ToView(purchase); + } } }