From bb0bb04fc01a138638400b8404be2e1fe23df7a5 Mon Sep 17 00:00:00 2001 From: bocchanskyy Date: Tue, 16 Apr 2024 22:07:09 +0400 Subject: [PATCH] forgot to add smth... --- .../ComputersShopListImplement/Implements/ShopStorage.cs | 6 ++++++ ComputersShop/ComputersShopListImplement/Models/Shop.cs | 2 ++ 2 files changed, 8 insertions(+) diff --git a/ComputersShop/ComputersShopListImplement/Implements/ShopStorage.cs b/ComputersShop/ComputersShopListImplement/Implements/ShopStorage.cs index 83e4af7..1f70cd3 100644 --- a/ComputersShop/ComputersShopListImplement/Implements/ShopStorage.cs +++ b/ComputersShop/ComputersShopListImplement/Implements/ShopStorage.cs @@ -2,6 +2,7 @@ using ComputersShopContracts.SearchModels; using ComputersShopContracts.StoragesContracts; using ComputersShopContracts.ViewModels; +using ComputersShopDataModels.Models; using ComputersShopListImplement.Models; using System; using System.Collections.Generic; @@ -107,6 +108,11 @@ namespace ComputersShopListImplement.Implements return newShop.GetViewModel; } + public bool SellComputers(IComputerModel model, int quantity) + { + throw new NotImplementedException(); + } + public ShopViewModel? Update(ShopBindingModel model) { foreach (var Shop in _source.Shops) diff --git a/ComputersShop/ComputersShopListImplement/Models/Shop.cs b/ComputersShop/ComputersShopListImplement/Models/Shop.cs index 7631bda..5c401e4 100644 --- a/ComputersShop/ComputersShopListImplement/Models/Shop.cs +++ b/ComputersShop/ComputersShopListImplement/Models/Shop.cs @@ -55,5 +55,7 @@ namespace ComputersShopListImplement.Models DateOpening = DateOpening, Computers = Computers }; + + public int Capacity => throw new NotImplementedException(); } } \ No newline at end of file