2023-02-13 15:18:58 +04:00
|
|
|
|
using SushiBarContracts.BindingModels;
|
|
|
|
|
using SushiBarContracts.SearchModels;
|
|
|
|
|
using SushiBarContracts.ViewModels;
|
|
|
|
|
using SushiBarDataModels.Models;
|
|
|
|
|
|
|
|
|
|
namespace SushiBarContracts.BusinessLogicsContracts
|
|
|
|
|
{
|
|
|
|
|
public interface IStoreLogic
|
|
|
|
|
{
|
|
|
|
|
List<StoreViewModel>? ReadList(StoreSearchModel? model);
|
|
|
|
|
StoreViewModel? ReadElement(StoreSearchModel model);
|
|
|
|
|
bool Create(StoreBindingModel model);
|
|
|
|
|
bool Update(StoreBindingModel model);
|
|
|
|
|
bool Delete(StoreBindingModel model);
|
2023-03-11 21:23:26 +04:00
|
|
|
|
bool SupplySushi(StoreSearchModel model, ISushiModel sushi, int quantity);
|
|
|
|
|
bool CheckToSupply(ISushiModel sushi, int quantity);
|
|
|
|
|
bool SellSushi(ISushiModel model, int quantity);
|
2023-02-13 15:18:58 +04:00
|
|
|
|
}
|
|
|
|
|
}
|