I havent really found a solution seaching through SO.
…and suspect I should really do this in the Model…
but is it possible to have C# code blocks where adhoc code can be added eg:
@int daysLeft = CurrentTenant.TrialExpiryDate.Subtract(DateTimeOffset.Now).Days
@if (daysLeft <= 0) {
{
<text>
Trial period completed
</text>
}
else
{
<text>
You have @daysLeft days left of you trial
</text>
}
Sure it is:
Phil Haack has a pretty popular blog post summing up Razor syntax.