20 lines
612 B
C#
20 lines
612 B
C#
using CandyHouseContracts.DataModels;
|
|
|
|
namespace CandyHouseContracts.BusinessLogicsContracts;
|
|
|
|
internal interface IProductBusinessLogicContract
|
|
{
|
|
List<ProductDataModel> GetAllProducts(bool onlyActive = true);
|
|
|
|
List<ProductDataModel> GetAllProductsByManufacturer(string manufacturerId, bool onlyActive = true);
|
|
|
|
List<ProductHistoryDataModel> GetProductHistoryByProduct(string productId);
|
|
|
|
ProductDataModel GetProductByData(string data);
|
|
|
|
void InsertProduct(ProductDataModel productDataModel);
|
|
|
|
void UpdateProduct(ProductDataModel productDataModel);
|
|
|
|
void DeleteProduct(string id);
|
|
} |