2023-01-31 15:23:18 +04:00
|
|
|
|
using SushiBarContracts.BindingModels;
|
|
|
|
|
using SushiBarContracts.SearchModels;
|
|
|
|
|
using SushiBarContracts.ViewModels;
|
2023-03-04 10:34:01 +04:00
|
|
|
|
using SushiBarDataModels.Models;
|
2023-01-31 15:23:18 +04:00
|
|
|
|
|
|
|
|
|
namespace SushiBarContracts.StoragesContracts
|
|
|
|
|
{
|
|
|
|
|
public interface ISushiStorage
|
|
|
|
|
{
|
|
|
|
|
List<SushiViewModel> GetFullList();
|
|
|
|
|
List<SushiViewModel> GetFilteredList(SushiSearchModel model);
|
|
|
|
|
SushiViewModel? GetElement(SushiSearchModel model);
|
|
|
|
|
SushiViewModel? Insert(SushiBindingModel model);
|
|
|
|
|
SushiViewModel? Update(SushiBindingModel model);
|
|
|
|
|
SushiViewModel? Delete(SushiBindingModel model);
|
2023-03-04 10:34:01 +04:00
|
|
|
|
bool HasSushi(ISushiModel model, int needCount);
|
|
|
|
|
bool SellSushi(ISushiModel model, int count);
|
2023-01-31 15:23:18 +04:00
|
|
|
|
}
|
|
|
|
|
}
|