@using System.ComponentModel.DataAnnotations
@using ImageBoardServerApp.Data
@using ImageBoardServerApp.Data.Repository
/@board.Tag/ - @board.Topic - BulletBoard
Threads
@if (posts.Any())
{
@foreach(var post in posts)
{
}
}
@code {
private List posts;
protected override async Task OnInitializedAsync()
{
posts = await PostsRepository.getPostsByBoardAsync(board.Tag);
}
[Parameter]
[Required]
public BoardData board { get; set; }
}