2024-03-25 01:38:54 +04:00
|
|
|
|
using FoodOrdersContracts.BindingModels;
|
|
|
|
|
using FoodOrdersContracts.SearchModels;
|
|
|
|
|
using FoodOrdersContracts.ViewModels;
|
|
|
|
|
using FoodOrdersDataModels.Models;
|
|
|
|
|
|
|
|
|
|
namespace FoodOrdersContracts.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 MakeShipment(ShopSearchModel shopModel, IDishModel dish, int count);
|
2024-04-15 23:43:49 +04:00
|
|
|
|
|
|
|
|
|
bool SellDish(IDishModel dish, int count);
|
2024-03-25 01:38:54 +04:00
|
|
|
|
}
|
|
|
|
|
}
|