PIbd-21_Potapov_N.S._Securi.../SecuritySystem/SecuritySystemContracts/BusinessLogicsContracts/IShopLogic.cs

33 lines
1.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using SecuritySystemContracts.BindingModels;
using SecuritySystemContracts.SearchModels;
using SecuritySystemContracts.ViewModels;
using SecuritySystemDataModels.Models;
namespace SecuritySystemContracts.BusinessLogicsContracts
{
public interface IShopLogic
{
ShopViewModel? ReadElement(ShopSearchModel model);
List<ShopViewModel>? ReadList(ShopSearchModel? model);
bool Create(ShopBindingModel model);
bool Update(ShopBindingModel model);
bool Delete(ShopBindingModel model);
/// <summary>
/// Продает продукт со всех магазинов в заданном количестве
/// </summary>
bool SellSecures(ISecureModel model, int count);
/// <summary>
/// Проверяет можно ли распределить во все магазины продукты в указанном количестве
/// </summary>
bool CheckSupplySecures(int count);
/// <summary>
/// Пополняет конкретный магазин продуктом в указанном количестве
/// </summary>
bool SupplySecures(ShopSearchModel model, ISecureModel secure, int count);
/// <summary>
/// Рапределяет по всем магазинам продукт в указанном количестве
/// </summary>
bool SupplySecures(ISecureModel secure, int count);
}
}