2023-03-12 01:50:01 +04:00
|
|
|
|
using FlowerShopContracts.BindingModels;
|
|
|
|
|
using FlowerShopContracts.SearchModels;
|
|
|
|
|
using FlowerShopContracts.ViewModels;
|
|
|
|
|
using FlowerShopDataModels.Models;
|
|
|
|
|
|
|
|
|
|
namespace FlowerShopContracts.BusinessLogicsContracts
|
|
|
|
|
{
|
|
|
|
|
public interface IShopLogic
|
|
|
|
|
{
|
|
|
|
|
ShopViewModel? ReadElement(ShopSearchModel model);
|
|
|
|
|
List<ShopViewModel>? ReadList(ShopSearchModel? model);
|
|
|
|
|
bool Create(ShopBindingModel model);
|
|
|
|
|
bool Update(ShopBindingModel model);
|
|
|
|
|
bool Delete(ShopBindingModel model);
|
|
|
|
|
bool SupplyBouquets(ShopSearchModel model, IBouquetModel bouquet, int count);
|
2023-03-26 01:51:51 +04:00
|
|
|
|
bool SellBouquet(IBouquetModel bouquet, int count);
|
2023-03-12 01:50:01 +04:00
|
|
|
|
}
|
|
|
|
|
}
|