예제 #1
0
        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);
        }
예제 #2
0
 public static IQueryable <TEntity> GetPagingQuery(IQueryable <TEntity> queryable, HaveTenantIdRequestModelBase <TEntity> requestModel)
 {
     return(requestModel.GetSkipAndTakeQuery(requestModel.GetOrderedDataQuery(queryable.Where(requestModel.GetExpression()))));
 }