open changes

This commit is contained in:
Arne Moerman
2024-12-15 19:08:25 +01:00
parent 586b3558ae
commit ab68df2184
145 changed files with 7428 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
using global::Wishlist.Models;
using global::Wishlist.Services;
namespace Wishlist.Pages.BlogPost
{
public partial class Index
{
private IEnumerable<BlogPostViewModel>? blogPosts;
protected override async Task OnInitializedAsync()
{
if (blogPosts == null)
{
var result = await BlogPostService.GetAllAsync();
blogPosts = Mapper.Map<IEnumerable<Models.BlogPost>, IEnumerable<BlogPostViewModel>>(result);
}
}
}
}