2024-02-18 12:22:10 +04:00
|
|
|
|
using ComputersShopContracts.BindingModels;
|
|
|
|
|
using ComputersShopContracts.SearchModels;
|
|
|
|
|
using ComputersShopContracts.ViewModels;
|
|
|
|
|
using ComputersShopDataModels.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ComputersShopContracts.BusinessLogicContracts
|
|
|
|
|
{
|
|
|
|
|
public interface IShopLogic
|
|
|
|
|
{
|
|
|
|
|
List<ShopViewModel>? ReadList(ShopSearchModel? model);
|
|
|
|
|
ShopViewModel? ReadElement(ShopSearchModel model);
|
|
|
|
|
bool Create(ShopBindingModel model);
|
|
|
|
|
bool Update(ShopBindingModel model);
|
|
|
|
|
bool Delete(ShopBindingModel model);
|
|
|
|
|
bool AddComputer(ShopSearchModel model, IComputerModel computer, int quantity);
|
2024-03-18 20:59:24 +04:00
|
|
|
|
bool AddComputers(IComputerModel computer, int quantity);
|
|
|
|
|
bool SellComputers(IComputerModel computer, int quantity);
|
2024-02-18 12:22:10 +04:00
|
|
|
|
}
|
|
|
|
|
}
|