From 19a398d6949e683d448292b6649c73289c446e63 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Fri, 11 Aug 2023 14:27:13 +0100 Subject: [PATCH] refactor: remove unused Post property --- OliverBooth/Areas/Blog/Pages/RawArticle.cshtml.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/OliverBooth/Areas/Blog/Pages/RawArticle.cshtml.cs b/OliverBooth/Areas/Blog/Pages/RawArticle.cshtml.cs index 9b78797..8ae85b8 100644 --- a/OliverBooth/Areas/Blog/Pages/RawArticle.cshtml.cs +++ b/OliverBooth/Areas/Blog/Pages/RawArticle.cshtml.cs @@ -1,4 +1,4 @@ -using Cysharp.Text; +using Cysharp.Text; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using OliverBooth.Data.Blog; @@ -23,12 +23,6 @@ public class RawArticle : PageModel _blogService = blogService; } - /// - /// Gets the requested blog post. - /// - /// The requested blog post. - public BlogPost Post { get; private set; } = null!; - public IActionResult OnGet(int year, int month, int day, string slug) { if (!_blogService.TryGetBlogPost(year, month, day, slug, out BlogPost? post))