0
Can the route parameter be dynamic? for example I want that when Uf is "sp" I put sao-paulo, and so on with the other states. Because then when I load the aciton it loads the url as I reported it. My problem is actually being able to rewrite the url by hiding the parameters. If anyone has any light I appreciate.
    [HttpGet]
    [Route("/sao-paulo")] <<<< (Esse Parametro tem como ser dinamico ????)
    public IActionResult EstadoSelecionado(string uf)
    {
        
        return View("Index_new", pessoa);
    }
						
if you pass the value between keys on the route, it takes the parameter value. for example: [Route("/{Uf}")]
– Marcos Junior
@Marcosjunior Simply very, but thank you very much. Helped me too much, I had tried once like this, ams ai went to read the documentation and this parameter can not be null. Dude, strong vlw hug too
– Mauricio Viana de Moura