Exemplo n.º 1
0
 public ActionResult Registro(RegistroModel registro)
 {
     if (ModelState.IsValid)
     {
         return RedirectToAction("Obrigado", registro);
     }
     else
     {
         return View(registro);
     }
 }
Exemplo n.º 2
0
 public ActionResult Obrigado(RegistroModel registro)
 {
     return View(registro);
 }
Exemplo n.º 3
0
 public ActionResult Registro()
 {
     var registro = new RegistroModel();
     return View(registro);
 }