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