add: funcionalidades REST

This commit is contained in:
2025-08-27 18:15:12 -03:00
parent cf9f2a1179
commit 3c2513a567
7 changed files with 434 additions and 24 deletions

View File

@@ -9,4 +9,8 @@ public interface IWorkshopRepository
Task<IReadOnlyList<Workshop>> GetAllAsync(DateTimeOffset? from, DateTimeOffset? to, string? q, CancellationToken ct);
Task<Workshop?> GetByIdAsync(Guid id, CancellationToken ct);
Task<Workshop> AddAsync(Workshop workshop, CancellationToken ct);
Task<Workshop?> UpdateAsync(Workshop workshop, CancellationToken ct);
Task<bool> DeleteAsync(Guid id, CancellationToken ct);
Task<bool> ExistsAsync(Guid id, CancellationToken ct);
Task<Workshop?> UpdatePartialAsync(Guid id, Action<Workshop> updateAction, CancellationToken ct);
}