public TableModelView <PollEntity> GetPollsFromFilterOption(FilterOptionModelView filterModelOption, IQueryable <PollEntity> polls)
        {
            PaginationHandler <PollEntity> paginationHandler = new PaginationHandler <PollEntity>(GetProperSortExpression(filterModelOption.nameSort),
                                                                                                  GetFilterExpression(filterModelOption.phrase));

            return(paginationHandler.GetEntityFromFilterOption(filterModelOption, polls));
        }
Example #2
0
        public TableModelView <ApplicationUser> GetListUser(FilterOptionModelView filterOptionModelView, IQueryable <ApplicationUser> applicationUsers)
        {
            var paginationHandler = new PaginationHandler <ApplicationUser>(GetProperSortExpression(filterOptionModelView.nameSort), GetFilterExpression(filterOptionModelView.phrase));

            return(paginationHandler.GetEntityFromFilterOption(filterOptionModelView, applicationUsers));
        }