Beispiel #1
0
        private IPagedList <HoSoCongViecResult> SearchAll(ValueSearchViewModel model)
        {
            var query = HoSoCongViecRepository.Find(model.ToValueSearch());

            query.ToList().ForEach(x =>
            {
                var folderCongViec = EnsureFolderCongViec(x.Id);
                x.JsonFiles        = GetPathFiles(folderCongViec);
            });
            return(query.ToPagedList(model.Page, TechOfficeConfig.PAGESIZE));
        }
        private IPagedList <TacNghiepResult> Find(ValueSearchViewModel model)
        {
            var seachAll = TacNghiepRepository.Find(model.ToValueSearch());

            return(seachAll.ToPagedList(model.Page, TechOfficeConfig.PAGESIZE));
        }