ISEbd-21_Agliullov.D.A._Con.../ConfectioneryContracts/StoragesContract/IShopStorage.cs
2023-02-15 06:34:44 +04:00

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);
}
}