Ejemplo n.º 1
0
        public ActionResult Index()
        {
            var model = new GetJobUrgentInput {
                FilterText = Request.QueryString["filterText"]
            };

            return(View(model));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 根据查询条件获取职位加急分页列表
        /// </summary>
        public async Task <PagedResultDto <JobUrgentListDto> > GetPagedJobUrgentsAsync(GetJobUrgentInput input)
        {
            var query = _jobUrgentRepositoryAsNoTrack;
            //TODO:根据传入的参数添加过滤条件

            var jobUrgentCount = await query.CountAsync();

            var jobUrgents = await query
                             .OrderBy(input.Sorting)
                             .PageBy(input)
                             .ToListAsync();

            var jobUrgentListDtos = jobUrgents.MapTo <List <JobUrgentListDto> >();

            return(new PagedResultDto <JobUrgentListDto>(
                       jobUrgentCount,
                       jobUrgentListDtos
                       ));
        }