From 3241d6069522b554610eccf4ebcd2e20818e1872 Mon Sep 17 00:00:00 2001 From: cirinatorres Date: Tue, 23 Nov 2021 18:57:20 +0100 Subject: [PATCH] Update Index.cshtml.cs (#24037) I think that the warning should be restored after the class instead of being disabled again. --- .../snapshot_sample6/Pages/Movies/Index.cshtml.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aspnetcore/tutorials/razor-pages/razor-pages-start/snapshot_sample6/Pages/Movies/Index.cshtml.cs b/aspnetcore/tutorials/razor-pages/razor-pages-start/snapshot_sample6/Pages/Movies/Index.cshtml.cs index 8b9a863c90..8d2c2c63dc 100644 --- a/aspnetcore/tutorials/razor-pages/razor-pages-start/snapshot_sample6/Pages/Movies/Index.cshtml.cs +++ b/aspnetcore/tutorials/razor-pages/razor-pages-start/snapshot_sample6/Pages/Movies/Index.cshtml.cs @@ -26,8 +26,8 @@ namespace RazorPagesMovie.Pages.Movies Movie = await _context.Movie.ToListAsync(); } } -#pragma warning disable CS8618 -#pragma warning disable CS8604 +#pragma warning restore CS8618 +#pragma warning restore CS8604 } #endregion -#endregion \ No newline at end of file +#endregion