Esempio n. 1
0
 public ActionResult FirstStep(FirstStepDTO firstStepDTO)
 {
     if (ModelState.IsValid)
     {
         TempData["FirstStepDTO"] = firstStepDTO;
         return(RedirectToAction("SecondStep"));
     }
     return(View("firstStep"));
 }
Esempio n. 2
0
 public ActionResult SecondStep(SecondStepDTO secondStepDTO)
 {
     if (ModelState.IsValid)
     {
         FirstStepDTO firstStepDTO = (FirstStepDTO)TempData["FirstStepDTO"];
         TempData["Record"] = new RecordDTO(firstStepDTO, secondStepDTO);
         return(RedirectToAction("ConfirmStep"));
     }
     else
     {
         return(View("secondStep"));
     }
 }