@page "/sys/modmenu/boards" @using ImageBoardServerApp.Data.Repository @using ImageBoardServerApp.Util

Boards

Tag / Topic / Max Threads / GETs / Locked?

@foreach (var b in brds) { @b.Tag / @b.Topic / @b.maxThreads / @b.NumberOfGETs / @b.isLocked / Edit Board / Delete Board

}
@code { public List brds { get; set; } protected override async Task OnParametersSetAsync() { await base.OnParametersSetAsync(); brds = await BoardsRepository.getBoardsAsync(); } private async Task removeBoard(BoardData b) { List postsOnB = await PostsRepository.getPostsByBoardAsync(b.Tag); foreach (var p in postsOnB) { await TheManager.deleteThread(p); } await BoardsRepository.deleteBoardAsync(b.BoardID); } }