using ConfectioneryContracts.BindingModels; using ConfectioneryContracts.SearchModels; using ConfectioneryContracts.ViewModels; using ConfectioneryDataModels.Models; namespace ConfectioneryContracts.StoragesContract { public interface IShopStorage { List GetFullList(); List GetFilteredList(ShopSearchModel model); ShopViewModel? GetElement(ShopSearchModel model); ShopViewModel? Insert(ShopBindingModel model); ShopViewModel? Update(ShopBindingModel model); ShopViewModel? Delete(ShopBindingModel model); bool HasNeedPastries(IPastryModel pastry, int needCount); public bool SellPastries(IPastryModel pastry, int needCount); } }