2018-10-07 03:03:38 +02:00
|
|
|
|
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);
|
2019-03-09 14:03:25 +01:00
|
|
|
|
|
|
|
|
|
|
T AddOrUpdate(T entity);
|
2018-10-07 03:03:38 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|