@page "/spells/{spellWord}" @model DysonNetwork.Sphere.Pages.Spell.MagicSpellPage @{ ViewData["Title"] = "Magic Spell"; }

Magic Spell

@if (Model.IsSuccess) {

The spell was applied successfully!

Now you can close this page.

} else if (Model.CurrentSpell == null) {

The spell was expired or does not exist.

} else {

The spell is for @System.Text.RegularExpressions.Regex.Replace(Model.CurrentSpell!.Type.ToString(), "([a-z])([A-Z])", "$1 $2")

for @@@Model.CurrentSpell.Account?.Name

@if (Model.CurrentSpell.ExpiresAt.HasValue) {

Available until @Model.CurrentSpell.ExpiresAt.Value.ToDateTimeUtc().ToString("g")

} @if (Model.CurrentSpell.AffectedAt.HasValue) {

Available after @Model.CurrentSpell.AffectedAt.Value.ToDateTimeUtc().ToString("g")

}

Would you like to apply this spell?

}
Solar Network
Solsynth LLC © @DateTime.Now.Year
Powered by DysonNetwork.Sphere