Hi, I'm trying to call a controller method at a glance, this is working on MVC ASP. The detail is that I need what I have in that function to print it in the view; in PHP with just placing an echo after a function prints it to me, for example Echo $ roles-> g_name zone ($ row ['idUser']); but in MVC I have no idea. The following is the method that I have in the controller:
public void InnerJoinTratamientos(int id) {
_CD.InnerJoinTratamientos(id);
}
and in the view I'm calling it like this:
<td>
@{ Response.Write(_tr.InnerJoinTratamientos(item.idTratamiento))}
</td>
the instance is done and everything else. Thanks for the help in advance! I hope you have explained me well