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