@{ Layout = "~/Views/Shared/_Layout.cshtml"; } @model LinkModel
@if (!Model.IsValid) {

This link has expired

} else { @if (Model.Share == true) { @Url.Action("Link", "Home", new { id = Model.message.Id }, "https") } else {
@if (Model.TimeLeft != null) { var time = Model.TimeLeft.Value; if (time.Days > 0) {

This message will expire in: @time.ToString("%d") days @time.ToString("%h") hours @time.ToString("%m") minutes

} else {

This message will expire in: @time.ToString(@"hh\:mm\:ss")

} } else {

This message will expire when you leave this page

}
}
Message: @Model.message.Text
} Back