public virtual ResponseModel <TVm> SearchAsTenant(PagingDataType status, HaveTenantIdRequestModelBase <TEntity> requestModel) { var count = Repository.GetAllAsTenant().Where(requestModel.GetExpression()).Count(); var response = GetAllAsTenant(requestModel); response.Count = count; return(response); }
public static IQueryable <TEntity> GetPagingQuery(IQueryable <TEntity> queryable, HaveTenantIdRequestModelBase <TEntity> requestModel) { return(requestModel.GetSkipAndTakeQuery(requestModel.GetOrderedDataQuery(queryable.Where(requestModel.GetExpression())))); }