C#C
C#2y ago
KidKai25

✅ Is it a good idea to store CSS class as a property in my C# model?

Example

class UserStatus
{
string StatusName {get;set;}
string StyleClass {get;set;}
}


Then I store like
"Online","green-circle"
"Offline", "red-circle"
Or should I check the status and then add the css in my js code itself?
Was this page helpful?