21 lines
741 B
C#
21 lines
741 B
C#
using ConfectioneryContracts.BindingModels;
|
|
using ConfectioneryContracts.SearchModels;
|
|
using ConfectioneryContracts.ViewModels;
|
|
using ConfectioneryDataModels.Models;
|
|
|
|
namespace ConfectioneryContracts.StoragesContract
|
|
{
|
|
public interface IShopStorage
|
|
{
|
|
List<ShopViewModel> GetFullList();
|
|
List<ShopViewModel> 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);
|
|
}
|
|
}
|