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