@functions{ public string GetSomeString(){ return string.Empty; } } <h2>index</h2> @GetSomeString()
References :
http://stackoverflow.com/questions/6531983/how-to-create-a-function-in-a-cshtml-template
Keywords :
Method , ASP , MVC , View
@functions{ public string GetSomeString(){ return string.Empty; } } <h2>index</h2> @GetSomeString()
References :
http://stackoverflow.com/questions/6531983/how-to-create-a-function-in-a-cshtml-template
Keywords :
Method , ASP , MVC , View