mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 20:13:49 +00:00
18 lines
327 B
C#
18 lines
327 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace DataAccessLayer
|
|
{
|
|
public interface IRepository<T>
|
|
where T : class
|
|
{
|
|
void Add(T entity);
|
|
|
|
IEnumerable<T> GetAll(int? limit, int? offset);
|
|
|
|
T? GetById(Guid id);
|
|
void Update(T entity);
|
|
void Delete(Guid id);
|
|
}
|
|
}
|