PIbd-21_BatylkinaAO_MusoevD.../Canteen/CanteenContracts/BusinessLogicsContracts/ILunchLogic.cs
2023-05-19 03:39:58 +04:00

25 lines
839 B
C#

using CanteenContracts.BindingModels;
using CanteenContracts.SearchModel;
using CanteenContracts.View;
using CanteenDataModels.Models;
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);
bool Delete(LunchBindingModel model);
bool Finish(LunchBindingModel model);
bool AddProductToLunch(LunchSearchModel model, IProductModel product, int count);
bool AddOrderToLunch(LunchSearchModel model, IOrderModel order, int count);
}
}