Files
ERP_Distribution/Distribution/Features/Item/IItemRepository.cs
T
Kalana B. Thilakarathna 397af8fd59 item mng with sync
2026-08-19 12:49:04 +05:30

14 lines
568 B
C#

namespace Distribution.Features.Item;
public interface IItemRepository
{
Task<Models.Item?> GetByIdAsync(Guid id);
Task<List<Models.Item>> GetAllAsync(Guid? categoryId = null, Guid? subCategoryId = null, Guid? brandId = null);
Task<bool> SkuExistsAsync(string sku, Guid? excludeId = null);
Task<Models.Item?> GetByExternalErpItemIdAsync(int erpId);
Task AddAsync(Models.Item entity);
void Update(Models.Item entity);
void Remove(Models.Item entity);
Task ReplaceConversionsAsync(Guid itemId, List<Models.UomConversion> conversions);
}