コード例 #1
0
        public IActionResult KetNoiThanhCumDuLieu()
        {
            List <CXacDinhDongDLNDViewModel> oldList = SessionXacDinhDongDuLieuNoiDung.GetSession(this.HttpContext);
            List <CXacDinhDongDLNDViewModel> newList = new List <CXacDinhDongDLNDViewModel>();

            foreach (var item in oldList)
            {
                newList.Add(CRFSServices.KetNoiThanhCumDuLieuAsync((ParserViewModel)item));
            }
            return(View());
        }
コード例 #2
0
        public async Task <IActionResult> Parser()
        {
            List <SearchViewModel> listSearch = SessionGoogle.GetSessionGoogleSearch(this.HttpContext);
            List <ParserViewModel> listParser = new List <ParserViewModel>();

            if (ModelState.IsValid)
            {
                foreach (var item in listSearch)
                {
                    listParser.Add(await CRFSServices.getParserAsync(item));
                }
            }
            SessionParser.SetSession(listParser, this.HttpContext);
            return(View(listParser));
        }