Template
11 lines
477 B
C#
11 lines
477 B
C#
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);
|
|
}
|