예제 #1
0
 public IActionResult CriarPlanoConta(PlanoContaModel formulario)
 {
     if (ModelState.IsValid)
     {
         formulario.httpContextAccessorModel = httpContextAccessorController;
         formulario.Insert();
         return(RedirectToAction(nameof(Index)));
     }
     return(View());
 }
예제 #2
0
 public IActionResult CriarPlanoConta(PlanoContaModel formulario)
 {
     if (ModelState.IsValid)
     {
         formulario.HttpContextAccessor = HttpContextAccessor;
         formulario.Insert();
         return(RedirectToAction("Index"));
     }
     return(View());
 }