15 lines
778 B
C#
15 lines
778 B
C#
using AMREZ.EOP.Contracts.DTOs.Common;
|
|
using AMREZ.EOP.Contracts.DTOs.MasterData.HazardClass;
|
|
using AMREZ.EOP.Domain.Entities.MasterData;
|
|
|
|
namespace AMREZ.EOP.Abstractions.Infrastructures.Repositories;
|
|
|
|
public interface IHazardClassRepository
|
|
{
|
|
Task<HazardClass?> GetAsync(Guid id, CancellationToken ct = default);
|
|
Task<PagedResponse<HazardClass>> SearchEffectiveAsync(Guid tenantId, HazardClassListRequest req, CancellationToken ct = default);
|
|
Task<bool> CodeExistsAsync(Guid tenantId, string code, CancellationToken ct = default);
|
|
Task AddAsync(HazardClass entity, CancellationToken ct = default);
|
|
Task UpdateAsync(HazardClass entity, CancellationToken ct = default);
|
|
Task<int> SoftDeleteAsync(Guid id, Guid tenantId, CancellationToken ct = default);
|
|
} |