2023-02-05 15:15:38 +04:00
|
|
|
|
using ConfectioneryContracts.BindingModels;
|
|
|
|
|
using ConfectioneryContracts.SearchModels;
|
|
|
|
|
using ConfectioneryContracts.ViewModels;
|
|
|
|
|
using ConfectioneryDataModels.Models;
|
2023-02-05 14:55:50 +04:00
|
|
|
|
|
|
|
|
|
namespace ConfectioneryContracts.BusinessLogicsContracts
|
|
|
|
|
{
|
2023-02-05 15:15:38 +04:00
|
|
|
|
public interface IShopLogic
|
2023-02-05 14:55:50 +04:00
|
|
|
|
{
|
2023-02-05 15:15:38 +04:00
|
|
|
|
List<ShopViewModel>? ReadList(ShopSearchModel? model);
|
|
|
|
|
ShopViewModel? ReadElement(ShopSearchModel model);
|
|
|
|
|
bool Create(ShopBindingModel model);
|
|
|
|
|
bool Update(ShopBindingModel model);
|
|
|
|
|
bool Delete(ShopBindingModel model);
|
|
|
|
|
bool AddPastry(ShopSearchModel model, IPastryModel pastry, int count);
|
2023-02-18 18:21:15 +04:00
|
|
|
|
int GetFreePlacesWithPastriesInShops(int countPastries);
|
|
|
|
|
bool AddPastriesInShops(IPastryModel pastry, int count);
|
2023-02-18 20:10:51 +04:00
|
|
|
|
public bool SellPastries(IPastryModel pastry, int needCount);
|
2023-02-05 14:55:50 +04:00
|
|
|
|
}
|
|
|
|
|
}
|