mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
Refactor data layer, add business layer
This commit is contained in:
15
BusinessLayer/Services/IService.cs
Normal file
15
BusinessLayer/Services/IService.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace BusinessLayer.Services
|
||||
{
|
||||
public interface IService<T>
|
||||
where T : class
|
||||
{
|
||||
IEnumerable<T> GetAll(int? limit, int? offset);
|
||||
T? GetById(Guid id);
|
||||
void Add(T entity);
|
||||
void Update(T entity);
|
||||
void Delete(Guid id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user