2023-04-06 14:34:58 +04:00
|
|
|
|
using CanteenContracts.BindingModels;
|
|
|
|
|
using CanteenContracts.SearchModel;
|
|
|
|
|
using CanteenContracts.View;
|
2023-05-19 03:39:58 +04:00
|
|
|
|
using CanteenDataModels.Models;
|
2023-04-06 14:34:58 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace CanteenContracts.BusinessLogicsContracts
|
|
|
|
|
{
|
|
|
|
|
public interface IDishLogic
|
|
|
|
|
{
|
|
|
|
|
List<DishViewModel>? ReadList(DishSearchModel? model);
|
|
|
|
|
DishViewModel? ReadElement(DishSearchModel model);
|
|
|
|
|
bool Create(DishBindingModel model);
|
|
|
|
|
bool Update(DishBindingModel model);
|
|
|
|
|
bool Delete(DishBindingModel model);
|
2023-05-19 03:39:58 +04:00
|
|
|
|
bool AddProductsToDish(DishBindingModel model, IProductModel product, int count);
|
2023-04-06 14:34:58 +04:00
|
|
|
|
}
|
|
|
|
|
}
|