@{ var message=""; var weekday=DateTime.Now.DayOfWeek; var day=weekday.ToString() } @switch(day) { case "Monday": message="This is the first weekday."; break; case "Thursday": message="Only one day before weekend."; break; case "Friday": message="Tomorrow is weekend!"; break; default: message="Today is " + day; break; }
@message