21 lines
526 B
C#
Raw Permalink Normal View History

2025-02-27 17:13:36 +04:00
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);
}