In my MVC app the controller gets the data (model) from an external API (so there is no model class being used) and passes that to the view. The data (model) has a container
You can implement a static formatting method or an HTML helper, then use this syntaxe :
@using class_of_method_namespace ... // HTML page here @className.MethodName()
or in case of HTML Helper
@Html.MehtodName()