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 ILunchLogic
|
|
|
|
|
{
|
|
|
|
|
List<LunchViewModel>? ReadList(LunchSearchModel? model);
|
|
|
|
|
LunchViewModel? ReadElement(LunchSearchModel model);
|
|
|
|
|
bool Create(LunchBindingModel model);
|
|
|
|
|
bool Update(LunchBindingModel model);
|
2023-04-09 00:34:25 +04:00
|
|
|
|
bool Delete(LunchBindingModel model);
|
2023-04-07 21:53:52 +04:00
|
|
|
|
bool Finish(LunchBindingModel model);
|
2023-05-19 03:39:58 +04:00
|
|
|
|
bool AddProductToLunch(LunchSearchModel model, IProductModel product, int count);
|
|
|
|
|
bool AddOrderToLunch(LunchSearchModel model, IOrderModel order, int count);
|
2023-04-06 14:34:58 +04:00
|
|
|
|
}
|
|
|
|
|
}
|