Generic Service
JSON Reference loop Events
This commit is contained in:
13
LaDOSE.Src/LaDOSE.Service/Interface/IBaseService.cs
Normal file
13
LaDOSE.Src/LaDOSE.Service/Interface/IBaseService.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
9
LaDOSE.Src/LaDOSE.Service/Interface/IEventService.cs
Normal file
9
LaDOSE.Src/LaDOSE.Service/Interface/IEventService.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using LaDOSE.Entity;
|
||||
|
||||
namespace LaDOSE.Business.Interface
|
||||
{
|
||||
public interface IEventService : IBaseService<Event>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user