PIbd21_Makarov_DV_FlowerShop/FlowerShop/FlowerShopContracts/BusinessLogicsContracts/IShopLogic.cs
2024-04-19 02:23:50 +04:00

19 lines
646 B
C#

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);
bool MakeSale(IFlowerModel model, int count);
}
}