async public Task <IActionResult> Post([FromForm] UserPost userPost) { Post newPost = await _userPostsHandler.BuildFromUserPostAsync(userPost); await repository.SaveThreadAsync(newPost); _repositoryMonitor.Update(repository); _repositoryMonitor.LogState(); await _repositoryManager.RemoveOldestThreads().ConfigureAwait(false); _logger.LogInformation("Returning from controller"); return(Ok()); }