15 lines
618 B
C#
15 lines
618 B
C#
namespace Distribution.Features.Item;
|
|
|
|
public interface IItemRepository
|
|
{
|
|
Task<Models.Item?> GetByIdAsync(Guid id);
|
|
Task<Models.Item?> GetBySkuAsync(string sku);
|
|
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);
|
|
}
|