ErrorView und ErrorViewModel hinzugefügt; ContactLink als Singleton konfiguriert, serialisiert aus appSettings

This commit is contained in:
Developer 02
2024-04-25 16:17:10 +02:00
parent 8efe321cc7
commit 966b7de3c4
15 changed files with 695 additions and 59 deletions

View File

@@ -2,8 +2,10 @@ namespace EnvelopeGenerator.Web.Models
{
public class ErrorViewModel
{
public string? RequestId { get; set; }
public string Title { get; init; } = "404";
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
public string Subtitle { get; init; } = "Hmmm...";
public string Body { get; init; } = "It looks like one of the developers fell asleep";
}
}