public async Task <PagedResultDto <DoctorEmployment> > DoctorEmploymentPage(DoctorEmploymentIn DoctorFileApplyInfo)
        {
            //初步过滤
            var query = _repository.GetAll().OrderByDescending(a => a.CreatedOn).Where(DoctorFileApplyInfo.Expression);
            //获取总数
            var tasksCount = query.Count();
            //获取总数
            var totalpage           = tasksCount / DoctorFileApplyInfo.MaxResultCount;
            var DoctorFileApplyList = await query.PageBy(DoctorFileApplyInfo.SkipCount, DoctorFileApplyInfo.MaxResultCount).ToListAsync();

            return(new PagedResultDto <DoctorEmployment>(tasksCount, DoctorFileApplyList.MapTo <List <DoctorEmployment> >()));
        }
        public async Task <IList <DoctorEmployment> > DoctorEmploymentList(DoctorEmploymentIn DoctorFileApplyInfo)
        {
            var DoctorFileApplys = _repository.GetAll().Where(DoctorFileApplyInfo.Expression).OrderByDescending(t => t.CreatedOn);

            return(await DoctorFileApplys.ToListAsync());
        }