2023-02-13 23:13:13 +04:00
|
|
|
|
using SushiBarContracts.BindingModels;
|
|
|
|
|
using SushiBarContracts.SearchModels;
|
|
|
|
|
using SushiBarContracts.ViewModels;
|
|
|
|
|
using SushiBarDataModels.Models;
|
|
|
|
|
|
|
|
|
|
namespace SushiBarContracts.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 AddSushiInShop(ShopSearchModel model, ISushiModel sushi, int count);
|
2023-03-04 10:34:01 +04:00
|
|
|
|
bool AddSushi(ISushiModel sushi, int count);
|
|
|
|
|
bool SellSushi(ISushiModel sushi, int count);
|
2023-02-13 23:13:13 +04:00
|
|
|
|
}
|
|
|
|
|
}
|