2023-03-11 21:23:26 +04:00

20 lines
716 B
C#

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);
bool SupplySushi(StoreSearchModel model, ISushiModel sushi, int quantity);
bool CheckToSupply(ISushiModel sushi, int quantity);
bool SellSushi(ISushiModel model, int quantity);
}
}