Template
fix(architecture): corrections of architecture
This commit is contained in:
1 parent
8e6d35ea0a
commit
9d5bb55335
7 files changed
+8
-4
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