Declaración de Razor Switch
@switch(DateTime.Now.DayOfWeek)
{
case DayOfWeek.Monday:
<span>Uh-oh...</span>
break;
case DayOfWeek.Friday:
<span>Weekend coming up!</span>
break;
case DayOfWeek.Saturday:
case DayOfWeek.Sunday:
<span>Finally weekend!</span>
break;
default:
<span>Nothing special about this day...</span>
break;
}
Horrible Hippopotamus