2024-02-11 17:39:43 +04:00
|
|
|
|
using IceCreamShopContracts.BindingModels;
|
|
|
|
|
using IceCreamShopContracts.SearchModels;
|
|
|
|
|
using IceCreamShopContracts.ViewModels;
|
|
|
|
|
using IceCreamShopDataModels.Models;
|
|
|
|
|
|
|
|
|
|
namespace IceCreamShopContracts.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 MakeShipment(ShopSearchModel shopModel, IIceCreamModel iceCream, int count);
|
2024-03-08 23:03:33 +04:00
|
|
|
|
|
|
|
|
|
bool MakeSale(IIceCreamModel model, int count);
|
2024-02-11 17:39:43 +04:00
|
|
|
|
}
|
|
|
|
|
}
|