public async Task OnGet() { Game = await _gamesService.GetLatestGame(); Post = await _postsService.GetLatestPost(); if (Game != null) { Game.ImagePath = $"../games/{Game.Id}.png"; Game.ShortenDescription(); } if (Post != null) { Post.ShortenBody(); } }