namespace SCM.Domain.Projects; /// Contrato de persistĂȘncia de obras. Implementado em SCM.Infrastructure. public interface IProjectRepository { Task GetByIdAsync(Guid id, CancellationToken ct = default); Task<(IReadOnlyList Items, long TotalItems)> GetPagedAsync( int offset, int pageSize, string? search, CancellationToken ct = default); Task CodeExistsAsync(string code, Guid? excludeId = null, CancellationToken ct = default); Task AddAsync(Project project, CancellationToken ct = default); Task UpdateAsync(Project project, CancellationToken ct = default); Task DeleteAsync(Guid id, CancellationToken ct = default); }