there is an action: / Home / GetName and returns the string "Mike", the controller and the action are like:
public class HomeController : Controller
{
public string GetName()
{
return "Mike";
}
}
How can I display this result of an action in a view? (without ajax is better)
source
share