I know it is possible to have multiple CSS classes in an element, but I was wondering if it was possible to select which class to use by using a razor if statement?
So something like this (pseudo code)
<div @if( num items in Model ==0){
class="Error";
} else
class ="home"; >
I would think that this would be possible, if anyone has some ideas I would appreciate their help!
Thanks in advance