ISEbd-21_Agliullov.D.A._Con.../ConfectioneryContracts/BusinessLogicsContracts/IShopLogic.cs
2023-02-18 20:20:45 +04:00

21 lines
811 B
C#

using ConfectioneryContracts.BindingModels;
using ConfectioneryContracts.SearchModels;
using ConfectioneryContracts.ViewModels;
using ConfectioneryDataModels.Models;
namespace ConfectioneryContracts.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 AddPastry(ShopSearchModel model, IPastryModel pastry, int count);
int GetFreePlacesWithPastriesInShops(int countPastries);
bool AddPastriesInShops(IPastryModel pastry, int count);
public bool SellPastries(IPastryModel pastry, int needCount);
}
}