14 lines
288 B
C#
14 lines
288 B
C#
|
using MedicalDatabaseContracts.Models;
|
|||
|
|
|||
|
namespace MedicalDatabaseContracts
|
|||
|
{
|
|||
|
public interface IStorage<T> where T : AbstractModel
|
|||
|
{
|
|||
|
T? Get(int id);
|
|||
|
List<T> GetAll();
|
|||
|
void Insert(T item);
|
|||
|
void Update(T item);
|
|||
|
void Delete(int id);
|
|||
|
}
|
|||
|
}
|