C#C
C#4y ago
surwren

Modularity for functions in view

Is it possible for me to package the code to be used in my view into a function, and then call aforementioned function in the view?

If you look at my image, the code is messy as all heck because I'm using @ notation to put it directly into a div. I'm looking for a way to clean up the code.
unknown.png
Was this page helpful?