Refactor Card Model to manage endpoint routing
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
|
||||
public interface IDatabaseModel<T, in TInput>
|
||||
{
|
||||
Task<IEnumerable<T>> GetAllAsync();
|
||||
Task<T?> GetByIdAsync(int id);
|
||||
Task<T> CreateAsync(TInput input);
|
||||
Task<T?> UpdateAsync(int id, TInput input);
|
||||
Task<bool> DeleteAsync(int id);
|
||||
Task<IEnumerable<T>> GetAll();
|
||||
Task<T?> GetById(int id);
|
||||
Task<T> Create(TInput input);
|
||||
Task<T?> Update(int id, TInput input);
|
||||
Task<bool> Delete(int id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user