Exemple #1
0
        public IActionResult page()
        {
            List <PinfoVM> infors    = new List <PinfoVM>();
            var            inforList = pinfoService.GetPinfos().ToList();

            foreach (var item in inforList)
            {
                PinfoVM infor = new PinfoVM();
                infor.Id    = item.Id;
                infor.Step1 = item.Step1;
                infor.Step2 = item.Step2;
                infor.Step3 = item.Step3;
                infor.Step4 = item.Step4;
                infor.Step5 = item.Step5;
                infor.Step6 = item.Step6;
                infors.Add(infor);
            }
            return(View(infors));
        }
Exemple #2
0
        public IActionResult Process()
        {
            var lstinfo = pinfoService.GetPinfos().FirstOrDefault();

            return(View(lstinfo));
        }