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