refactor: remove unused Post property
This commit is contained in:
parent
eb2edcb3f6
commit
19a398d694
@ -1,4 +1,4 @@
|
|||||||
using Cysharp.Text;
|
using Cysharp.Text;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
using OliverBooth.Data.Blog;
|
using OliverBooth.Data.Blog;
|
||||||
@ -23,12 +23,6 @@ public class RawArticle : PageModel
|
|||||||
_blogService = blogService;
|
_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)
|
public IActionResult OnGet(int year, int month, int day, string slug)
|
||||||
{
|
{
|
||||||
if (!_blogService.TryGetBlogPost(year, month, day, slug, out BlogPost? post))
|
if (!_blogService.TryGetBlogPost(year, month, day, slug, out BlogPost? post))
|
||||||
|
Loading…
Reference in New Issue
Block a user