2024-04-04 00:29:16 +04:00
|
|
|
|
using FlowerShopContracts.BindingModels;
|
|
|
|
|
using FlowerShopContracts.SearchModels;
|
|
|
|
|
using FlowerShopContracts.ViewModels;
|
|
|
|
|
using FlowerShopDataModels.Models;
|
|
|
|
|
|
|
|
|
|
namespace FlowerShopContracts.BusinessLogicsContracts
|
|
|
|
|
{
|
|
|
|
|
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 MakeSupply(ShopSearchModel shopModel, IFlowerModel flower, int count);
|
2024-04-19 02:23:50 +04:00
|
|
|
|
bool MakeSale(IFlowerModel model, int count);
|
|
|
|
|
}
|
2024-04-04 00:29:16 +04:00
|
|
|
|
}
|