21 lines
526 B
C#
21 lines
526 B
C#
|
using IcecreamVan.DataModels;
|
|||
|
|
|||
|
namespace IcecreamVan.StoragesContracts;
|
|||
|
|
|||
|
public interface IProductContract
|
|||
|
{
|
|||
|
List<ProductDataModel> GetList(bool onlyActive = true, string? manufacturerID = null);
|
|||
|
|
|||
|
List<ProductHistoryDataModel> GetProductHistoryById(string productId);
|
|||
|
|
|||
|
ProductDataModel? GetElementById(string id);
|
|||
|
|
|||
|
ProductDataModel? GetElementByName(string name);
|
|||
|
|
|||
|
void AddElement(ProductDataModel prodDataModel);
|
|||
|
|
|||
|
void UpdElement(ProductDataModel prodDataModel);
|
|||
|
|
|||
|
void DelElement(string id);
|
|||
|
}
|