Calling non-Action methods from view-MVC .NET
I want to call a non-action method in a view. Can I do that? In other
words, there is a method in my controller which returns a string. I want
to call that method in my view (.cshtml) and show it in the view. All I
could see was, the methods should return an ActionResult. But in my case I
do not need a view returned just a string.
No comments:
Post a Comment