2024-02-18 12:22:10 +04:00
|
|
|
|
using ComputersShopContracts.BindingModels;
|
|
|
|
|
using ComputersShopContracts.SearchModels;
|
|
|
|
|
using ComputersShopContracts.ViewModels;
|
2024-03-18 20:59:24 +04:00
|
|
|
|
using ComputersShopDataModels.Models;
|
2024-02-18 12:22:10 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ComputersShopContracts.StoragesContracts
|
|
|
|
|
{
|
|
|
|
|
public interface IShopStorage
|
|
|
|
|
{
|
|
|
|
|
List<ShopViewModel> GetFullList();
|
|
|
|
|
List<ShopViewModel> GetFilteredList(ShopSearchModel model);
|
|
|
|
|
ShopViewModel? GetElement(ShopSearchModel model);
|
|
|
|
|
ShopViewModel? Insert(ShopBindingModel model);
|
|
|
|
|
ShopViewModel? Update(ShopBindingModel model);
|
|
|
|
|
ShopViewModel? Delete(ShopBindingModel model);
|
2024-03-18 20:59:24 +04:00
|
|
|
|
bool SellComputers(IComputerModel model, int quantity);
|
2024-02-18 12:22:10 +04:00
|
|
|
|
}
|
2024-03-18 20:59:24 +04:00
|
|
|
|
}
|