Refactor Card Model to manage endpoint routing

This commit is contained in:
2025-12-29 17:12:08 -06:00
parent 41d1cc4fc0
commit b01ff470ac
4 changed files with 43 additions and 42 deletions

View File

@@ -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);
}