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