11 lines
292 B
C#
11 lines
292 B
C#
namespace SDG_Backend_Barracuda.Models;
|
|
|
|
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);
|
|
}
|