refacto BlogPost serialization
Some checks failed
Dotnet build and test / log-the-inputs (push) Has been cancelled
Dotnet build and test / build (push) Has been cancelled

This commit is contained in:
Paul Schneider 2026-08-05 21:05:14 +01:00
commit 64547840e4
No known key found for this signature in database
GPG key ID: 1E66C65EE2B46F1B
8 changed files with 22 additions and 17 deletions

View file

@ -22,9 +22,9 @@ namespace Yavsc.Blogs.Controllers
// GET: api/BlogApi
[HttpGet]
public async Task<IEnumerable<IBlogPost>> GetBlogspot(int start = 0, int take = 25)
public async Task<IEnumerable<BlogPost>> GetBlogspot(int start = 0, int take = 25)
{
return await blogSpotService.Index(User, null, start, take);
return (await blogSpotService.Index(User, null, start, take)).Cast<BlogPost>();
}
// GET: api/BlogApi/5