I have a large form that I've broken down into three smaller views. I want to detect with the user has already filled one step or more and redirect him accordingly. I am just trying to figure out a good solution for this. The user will be submiting data using the POST method from step to step - posting because I don't want that data be visible on the user URL (GET). The problem is that when there's session data telling that the user filled some step I want to post to the next step "programmatically", in the controlller, but I don't know how to do it.
This doesn't pass data...
return RedirectToAction("PostDadosContato", new { dadosPessoais = dadosPessoais, precompletado = true });
to this.
public IActionResult PostDadosContato(DadosPessoais dadosPessoais, bool precompletado = false)
{
}
See in this picture.