Generic Service

JSON Reference loop
Events
This commit is contained in:
2018-10-07 03:03:38 +02:00
parent 642d533a49
commit 9a9d4c7053
12 changed files with 270 additions and 117 deletions

View File

@@ -0,0 +1,13 @@
using System.Collections.Generic;
namespace LaDOSE.Business.Interface
{
public interface IBaseService<T> where T : class
{
IEnumerable<T> GetAll();
T GetById(int id);
T Create(T entity);
bool Update(T entity);
bool Delete(int id);
}
}

View File

@@ -0,0 +1,9 @@
using LaDOSE.Entity;
namespace LaDOSE.Business.Interface
{
public interface IEventService : IBaseService<Event>
{
}
}

View File

@@ -3,13 +3,8 @@ using LaDOSE.Entity;
namespace LaDOSE.Business.Interface
{
public interface IGameService
public interface IGameService : IBaseService<Game>
{
IEnumerable<Game> GetAll();
Game GetById(int id);
Game Create(Game game);
bool Update(Game game);
void Delete(int id);
}
}