add: funcionalidades REST
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user