2024-02-14 22:27:41 +04:00
|
|
|
|
using FlowerShopContracts.ViewModels;
|
|
|
|
|
using FlowerShopContracts.SearchModels;
|
|
|
|
|
using FlowerShopContracts.BindingModels;
|
|
|
|
|
using FlowerShopDataModels.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace FlowerShopContracts.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-14 21:28:58 +04:00
|
|
|
|
public bool SellFlowers(IFlowerModel model, int count);
|
2024-02-14 22:27:41 +04:00
|
|
|
|
}
|
|
|
|
|
}
|