bulletboards/ImageBoardServerApp/Pages/Basic/BoardPage.razor

21 lines
No EOL
376 B
Text

@page "/{boardTag}/"
@using ImageBoardServerApp.Data.Repository
@using System.ComponentModel.DataAnnotations
<Board board="@m"/>
@code {
[Parameter]
[Required]
public string boardTag { get; set; }
private BoardData m;
protected override async Task OnParametersSetAsync()
{
m = await BoardsRepository.getBoardByTagAsync(boardTag);
}
}