19 lines
642 B
C#
19 lines
642 B
C#
using SushiBarContracts.BindingModel;
|
|
using SushiBarContracts.SearchModel;
|
|
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);
|
|
bool SellSushis(ISushiModel sushi, int count);
|
|
}
|
|
}
|