refactor: remove unused Post property

This commit is contained in:
Oliver Booth 2023-08-11 14:27:13 +01:00
parent eb2edcb3f6
commit 19a398d694
Signed by: oliverbooth
GPG Key ID: 725DB725A0D9EE61
1 changed files with 1 additions and 7 deletions

View File

@ -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;
}
/// <summary>
/// Gets the requested blog post.
/// </summary>
/// <value>The requested blog post.</value>
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))