Template
Initial Commit
This commit is contained in:
commit
bd7e505432
22 files changed
+871
No files matched your search
@@ -0,0 +1,10 @@
|
||||
namespace RT.Application.Services;
|
||||
|
||||
public interface IService<TCreate, TUpdate, TResponse>
|
||||
{
|
||||
Task<IEnumerable<TResponse>> GetAllAsync(CancellationToken ct = default);
|
||||
Task<TResponse?> GetByIdAsync(Guid id, CancellationToken ct = default);
|
||||
Task<TResponse> CreateAsync(TCreate dto, CancellationToken ct = default);
|
||||
Task<TResponse> UpdateAsync(Guid id, TUpdate dto, CancellationToken ct = default);
|
||||
Task DeleteAsync(Guid id, CancellationToken ct = default);
|
||||
}
|
||||
Reference in new issue
Block a user