@page "/"
@using ImageBoardServerApp.Data.Repository
BulletBoard
This is a simple Imageboard made in Razor.
We're currently hosting @amountOfPosts Threads with @amountOfComments Comments from @amountOfUsers Users.
If you are a member of the server team please log in
[here]
.
@code{
private int amountOfPosts = -1;
private int amountOfComments = -1;
private int amountOfUsers = -1;
protected override async Task OnInitializedAsync()
{
var posts = await PostsRepository.getPostsAsync();
amountOfPosts = posts.Count;
var comments = await CommentsRepository.getCommentsAsync();
amountOfComments = comments.Count;
var users = await UsersRepository.getUsersAsync();
amountOfUsers = users.Count;
}
}