public ActionResult Index() { var model = new GetT_DepInput { FilterText = Request.QueryString["filterText"] }; return(View(model)); }
/// <summary> /// 根据查询条件获取部门表分页列表 /// </summary> public async Task <JtableResult <List <T_DepListDto> > > GetPagedT_DepsAsync(GetT_DepInput input) { var query = _t_DepRepository.GetAll(); //TODO:根据传入的参数添加过滤条件 var t_DepCount = await query.CountAsync(); var t_Deps = await query .OrderBy(input.Sorting) .PageBy(input) .ToListAsync(); var t_DepListDtos = t_Deps.MapTo <List <T_DepListDto> >(); //return new TPagedResultDto<T_DepListDto>( //t_DepCount, //t_DepListDtos //); return(new JtableResult <List <T_DepListDto> >(t_DepCount, t_DepListDtos)); }