1
If I create a method like ActionResult
with any name and give a re-turn to a View
that I want to return something, will work normally or need to have the same name of View
?
public ActionResult RetornarIRPJ(string Tipo)
{
BoletoRepositorio br = new BoletoRepositorio();
BoletoModel bm = new BoletoModel();
bm.IRPJ = br.IRPJ(Tipo).ToString();
return View("Detalhes");
}
I created a method here, and in the end I’m returning it to view but it doesn’t fall even at the breakpoint. Strange.
– AndreeH
@Andreeh I haven’t touched the SP net mvc for a while, but edit and post the methods for redirecting the view that we take a look at.
– Thiago Friedman
Ready @Thiago Falcão
– AndreeH
heim @Andreeh, tries to put the [Httppost] on top of the Actionresult method and tries to debug
– Thiago Friedman
in that case is Get what I intend to do.
– AndreeH
But does the Details view take ??? Type "Details/1" ?? If so, do Return View("Details", new { id=youUbject.Id });
– Janderson Thomaz