Follow the code below:
public ActionResult Teste1(int num1, int num2)
{
var valor = Teste2(1, 2); //Aqui recebe valor nulo
}
public ActionResult Teste2(int num11, int num22)
{
//Alguns valores aqui...
var valor = 123;
return null;
}
The values that are in the action Teste2
, move to action Teste1
with variable valor
, is this possible?