Skip to content

Commit

Permalink
Remove workaround for dotnet/aspnetcore#37510
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-lerch committed Mar 22, 2024
1 parent 1c85ff8 commit a1c66e2
Show file tree
Hide file tree
Showing 15 changed files with 0 additions and 60 deletions.
4 changes: 0 additions & 4 deletions src/TravelBlog/Views/Admin/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
@inject IOptions<SiteOptions> SiteOptions
@model AdminViewModel
@{
// .NET 6 does not allow to enforce callers to pass a view model:
// https://github.com/dotnet/aspnetcore/issues/37510
if (Model is null) throw new ArgumentNullException(nameof(Model));

ViewData["Title"] = "Admin";
}

Expand Down
4 changes: 0 additions & 4 deletions src/TravelBlog/Views/BlogPost/Edit.cshtml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
@model PostEditViewModel
@{
// .NET 6 does not allow to enforce callers to pass a view model:
// https://github.com/dotnet/aspnetcore/issues/37510
if (Model is null) throw new ArgumentNullException(nameof(Model));

ViewData["Title"] = "Post bearbeiten";
}

Expand Down
4 changes: 0 additions & 4 deletions src/TravelBlog/Views/BlogPost/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

@model PostsViewModel
@{
// .NET 6 does not allow to enforce callers to pass a view model:
// https://github.com/dotnet/aspnetcore/issues/37510
if (Model is null) throw new ArgumentNullException(nameof(Model));

ViewData["Title"] = "Posts";
}

Expand Down
4 changes: 0 additions & 4 deletions src/TravelBlog/Views/BlogPost/Post.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

@model PostViewModel
@{
// .NET 6 does not allow to enforce callers to pass a view model:
// https://github.com/dotnet/aspnetcore/issues/37510
if (Model is null) throw new ArgumentNullException(nameof(Model));

ViewData["Title"] = Model.Post.Title;
}

Expand Down
4 changes: 0 additions & 4 deletions src/TravelBlog/Views/BlogPost/Reads.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

@model PostReadsViewModel
@{
// .NET 6 does not allow to enforce callers to pass a view model:
// https://github.com/dotnet/aspnetcore/issues/37510
if (Model is null) throw new ArgumentNullException(nameof(Model));

ViewData["Title"] = $"Seitenaufrufe für {Model.Post.Title}";
}

Expand Down
4 changes: 0 additions & 4 deletions src/TravelBlog/Views/Home/Edit.cshtml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
@model HomeEditViewModel
@{
// .NET 6 does not allow to enforce callers to pass a view model:
// https://github.com/dotnet/aspnetcore/issues/37510
if (Model is null) throw new ArgumentNullException(nameof(Model));

ViewData["Title"] = "Homepage bearbeiten";
}

Expand Down
4 changes: 0 additions & 4 deletions src/TravelBlog/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@

@model HomeViewModel
@{
// .NET 6 does not allow to enforce callers to pass a view model:
// https://github.com/dotnet/aspnetcore/issues/37510
if (Model is null) throw new ArgumentNullException(nameof(Model));

ViewData["Title"] = "Homepage";
}

Expand Down
4 changes: 0 additions & 4 deletions src/TravelBlog/Views/Media/Index.cshtml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
@model MediaViewModel
@{
// .NET 6 does not allow to enforce callers to pass a view model:
// https://github.com/dotnet/aspnetcore/issues/37510
if (Model is null) throw new ArgumentNullException(nameof(Model));

ViewData["Title"] = "Mediendateien";
}

Expand Down
4 changes: 0 additions & 4 deletions src/TravelBlog/Views/Media/Uploaded.cshtml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
@model MediaUploadViewModel
@{
// .NET 6 does not allow to enforce callers to pass a view model:
// https://github.com/dotnet/aspnetcore/issues/37510
if (Model is null) throw new ArgumentNullException(nameof(Model));

ViewData["Title"] = "Upload Zusammenfassung";
}

Expand Down
4 changes: 0 additions & 4 deletions src/TravelBlog/Views/Registration/Index.cshtml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
@model RegistrationViewModel
@{
// .NET 6 does not allow to enforce callers to pass a view model:
// https://github.com/dotnet/aspnetcore/issues/37510
if (Model is null) throw new ArgumentNullException(nameof(Model));

ViewData["Title"] = "Registrierung";
}

Expand Down
4 changes: 0 additions & 4 deletions src/TravelBlog/Views/Registration/Success.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@

@model RegistrationViewModel
@{
// .NET 6 does not allow to enforce callers to pass a view model:
// https://github.com/dotnet/aspnetcore/issues/37510
if (Model is null) throw new ArgumentNullException(nameof(Model));

ViewData["Title"] = "Anfrage gesendet";
}

Expand Down
4 changes: 0 additions & 4 deletions src/TravelBlog/Views/Shared/Error.cshtml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
@model ErrorViewModel
@{
// .NET 6 does not allow to enforce callers to pass a view model:
// https://github.com/dotnet/aspnetcore/issues/37510
if (Model is null) throw new ArgumentNullException(nameof(Model));

ViewData["Title"] = "Error";
}

Expand Down
4 changes: 0 additions & 4 deletions src/TravelBlog/Views/Shared/Status.cshtml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
@model StatusViewModel
@{
// .NET 6 does not allow to enforce callers to pass a view model:
// https://github.com/dotnet/aspnetcore/issues/37510
if (Model is null) throw new ArgumentNullException(nameof(Model));

ViewData["Title"] = $"{Model.StatusCode} - {Model.StatusDescription}";
}

Expand Down
4 changes: 0 additions & 4 deletions src/TravelBlog/Views/Unsubscribe/Pending.cshtml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
@model UnsubscribeViewModel
@{
// .NET 6 does not allow to enforce callers to pass a view model:
// https://github.com/dotnet/aspnetcore/issues/37510
if (Model is null) throw new ArgumentNullException(nameof(Model));

ViewData["Title"] = "E-Mails abbestellen";
}

Expand Down
4 changes: 0 additions & 4 deletions src/TravelBlog/Views/Unsubscribe/Success.cshtml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
@model UnsubscribeViewModel
@{
// .NET 6 does not allow to enforce callers to pass a view model:
// https://github.com/dotnet/aspnetcore/issues/37510
if (Model is null) throw new ArgumentNullException(nameof(Model));

ViewData["Title"] = "E-Mails abbestellt";
}

Expand Down

0 comments on commit a1c66e2

Please sign in to comment.