2024-02-07 16:24:04 +04:00
|
|
|
|
using IceCreamShopContracts.BindingModels;
|
|
|
|
|
using IceCreamShopContracts.SearchModels;
|
|
|
|
|
using IceCreamShopContracts.ViewModels;
|
|
|
|
|
using IceCreamShopDataModels.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace IceCreamShopContracts.StoragesContracts
|
|
|
|
|
{
|
|
|
|
|
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);
|
2024-03-04 15:28:55 +04:00
|
|
|
|
public bool SellIceCreams(IIceCreamModel model, int count);
|
2024-02-07 16:24:04 +04:00
|
|
|
|
}
|
|
|
|
|
}
|