summaryrefslogtreecommitdiff
path: root/CoreWiki/Pages/LatestChanges.cshtml.cs
diff options
context:
space:
mode:
authorPaweł Bernaciak <pawelbernaciak@zohomail.eu>2023-12-29 09:41:56 +0100
committerPaweł Bernaciak <pawelbernaciak@zohomail.eu>2023-12-29 09:41:56 +0100
commit79f5eaf40b93d64be74d8b4f1ef80d19fadbfbe1 (patch)
treeddf121e78bdd50673379b223abfdb448c4f81291 /CoreWiki/Pages/LatestChanges.cshtml.cs
parent1a96616699ab41bf6343bc1acc45a836c3e6caf3 (diff)
Cywilizowany tailwindHEADmaster
Diffstat (limited to 'CoreWiki/Pages/LatestChanges.cshtml.cs')
-rw-r--r--CoreWiki/Pages/LatestChanges.cshtml.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/CoreWiki/Pages/LatestChanges.cshtml.cs b/CoreWiki/Pages/LatestChanges.cshtml.cs
index 83a70ab..21dde4c 100644
--- a/CoreWiki/Pages/LatestChanges.cshtml.cs
+++ b/CoreWiki/Pages/LatestChanges.cshtml.cs
@@ -18,14 +18,11 @@ namespace CoreWiki.Pages
_context = context;
}
- public IList<Article> Article { get;set; } = default!;
+ public IList<Article> Article { get; set; } = default!;
public async Task OnGetAsync()
{
- if (_context.Articles != null)
- {
- Article = await _context.Articles.OrderByDescending(a => a.PublishedDateTime).Take(10).ToListAsync();
- }
+ Article = await _context.Articles.OrderByDescending(a => a.PublishedDateTime).Take(10).ToListAsync();
}
}
}