[Add] MasterData Services.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using AMREZ.EOP.Contracts.DTOs.Common;
|
||||
using AMREZ.EOP.Contracts.DTOs.MasterData.Province;
|
||||
using AMREZ.EOP.Domain.Entities.MasterData;
|
||||
|
||||
namespace AMREZ.EOP.Abstractions.Infrastructures.Repositories;
|
||||
|
||||
public interface IProvinceRepository
|
||||
{
|
||||
Task<Province?> GetAsync(Guid id, CancellationToken ct = default);
|
||||
|
||||
Task<PagedResponse<Province>> SearchEffectiveAsync(
|
||||
Guid tenantId,
|
||||
ProvinceListRequest req,
|
||||
CancellationToken ct = default);
|
||||
|
||||
Task<bool> CodeExistsAsync(Guid tenantId, string code, CancellationToken ct = default);
|
||||
|
||||
Task AddAsync(Province entity, CancellationToken ct = default);
|
||||
|
||||
Task UpdateAsync(Province entity, CancellationToken ct = default);
|
||||
|
||||
Task<int> SoftDeleteAsync(Guid id, Guid tenantId, CancellationToken ct = default);
|
||||
}
|
||||
Reference in New Issue
Block a user