I need to render one view inside another, but this rendered view needs to receive and display data from the database, so I'll use the @Html.Action for this, but I need to pass a parameter to the method on the controller fetch the data in the database with based on this parameter and weighting the View with the data. The problem is that the way I did the parameter is not past, it always gets null.
View:
@Html.Action("ExibirCliente", "Cliente", new {idcliente = Model.ID})
Controller:
[Authorize]
public ActionResult ExibirCliente(int idcidade)
{
Cliente c = new Cliente();
c = c.BuscarCliente(idcidade);
return PartialView("~/Views/Shared/_ViewCLiente.cshtml", cep);
}