Executing backend logic as part of a custom module widget
I have created a module and customized the default list and detail widget templates for the content type. I now need to make a backend service call based on a particular content type property. What's the best practice to implement this?
For now I just added my (static) class to the project and called its methods from within the razor view of the widget. Seems to work nicely.