2023-04-06 14:34:58 +04:00
|
|
|
|
using CanteenContracts.BindingModels;
|
|
|
|
|
using CanteenContracts.SearchModel;
|
|
|
|
|
using CanteenContracts.View;
|
2023-05-17 17:02:26 +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 IProductLogic
|
|
|
|
|
{
|
|
|
|
|
List<ProductViewModel>? ReadList(ProductSearchModel? model);
|
|
|
|
|
ProductViewModel? ReadElement(ProductSearchModel model);
|
|
|
|
|
bool Create(ProductBindingModel model);
|
|
|
|
|
bool Update(ProductBindingModel model);
|
|
|
|
|
bool Delete(ProductBindingModel model);
|
2023-05-17 17:02:26 +04:00
|
|
|
|
bool AddCooksToProduct(ProductSearchModel model, ICookModel cook);
|
2023-04-06 14:34:58 +04:00
|
|
|
|
}
|
|
|
|
|
}
|