ISEbd-21_Koscheev.M.S.Softw.../SoftwareInstallation/SoftwareInstallationContracts/BusinessLogicsContracts/IShopLogic.cs
2023-03-18 01:08:33 +04:00

21 lines
853 B
C#

using SoftwareInstallationContracts.BindingModels;
using SoftwareInstallationContracts.SearchModels;
using SoftwareInstallationContracts.ViewModels;
using SoftwareInstallationDataModels.Models;
namespace SoftwareInstallationContracts.BusinessLogicsContracts
{
public interface IShopLogic
{
List<ShopViewModel>? ReadList(ShopSearchModel? model);
ShopViewModel? ReadElement(ShopSearchModel model);
bool Create(ShopBindingModel model);
bool Update(ShopBindingModel model);
bool Delete(ShopBindingModel model);
bool AddPackage(ShopSearchModel model, IPackageModel package, int count);
int GetFreePlacesWithPackagesInShops(int countPackages);
bool AddPackagesInShops(IPackageModel package, int count);
public bool SellPackages(IPackageModel package, int needCount);
}
}