public ActionResult FirstStep(FirstStepDTO firstStepDTO) { if (ModelState.IsValid) { TempData["FirstStepDTO"] = firstStepDTO; return(RedirectToAction("SecondStep")); } return(View("firstStep")); }
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")); } }