public IEnumerable <TEntity> GetWhereOrderBy <KProperty>(Interfaces.Repositories.ISpecification <TEntity> specification, Expression <Func <TEntity, KProperty> > orderByExpression, bool ascending = true) { IEnumerable <TEntity> listEntity = _unitOfWork.Repositories.GenericRepository <TEntity>().GetWhereOrderBy(specification, orderByExpression, ascending = true); return(listEntity); }
public Paged <TEntity> GetWhereOrderByPaged <KProperty>(int pageIndex, int pageCount, Interfaces.Repositories.ISpecification <TEntity> specification, Expression <Func <TEntity, KProperty> > orderByExpression, bool ascending = true) { Paged <TEntity> pagedTmp = _unitOfWork.Repositories.GenericRepository <TEntity>().GetWhereOrderByPaged(pageIndex, pageCount, specification, orderByExpression, ascending = true); return(pagedTmp); }
public IEnumerable <TEntity> GetWhere(Interfaces.Repositories.ISpecification <TEntity> specification) { IEnumerable <TEntity> listEntity = _unitOfWork.Repositories.GenericRepository <TEntity>().GetWhere(specification); return(listEntity); }