19 lines
646 B
C#
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);
|
|
}
|
|
}
|