public PagedListModel <FlowChartModelGet> QueryFlowCharts(FlowChartModelSearch searchModel, Page page) { var totalCount = 0; var flChartList = flowChartMasterRepository.QueryFlowCharts(searchModel, page, out totalCount); return(new PagedListModel <FlowChartModelGet>(totalCount, flChartList.ToList())); }