27 lines
716 B
C#
27 lines
716 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Linq.Expressions;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using PagedList;
|
|
|
|
namespace Church.Net.BLL.Core
|
|
{
|
|
public interface IBussinessLogic<T>
|
|
{
|
|
|
|
void Add(T obj);
|
|
void Edit(T obj);
|
|
void Delete(T obj);
|
|
void Delete(string id);
|
|
T GetSingle(Expression<Func<T,bool>> whereCondition);
|
|
PagedList<T> GetPagedList(int page, int itemPerPage);
|
|
PagedList<T> GetPagedList(int page, int itemPerPage, Expression<Func<T, bool>> whereCondition);
|
|
IList<T> GetAll();
|
|
IList<T> GetAll(Expression<Func<T, bool>> whereCondition);
|
|
|
|
}
|
|
}
|