PIbd-23-Radaev-A.V.-GiftShop/GiftShop/GiftShopContracts/StoragesContracts/IShopStorage.cs
Arkadiy Radaev d0874b7c11 res 4 hard
2024-05-18 18:05:46 +04:00

24 lines
756 B
C#

using GiftShopContracts.BindingModels;
using GiftShopContracts.SearchModels;
using GiftShopContracts.ViewModels;
using GiftShopDataModels.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GiftShopContracts.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);
public bool SellGifts(IGiftModel model, int count);
}
}