public async Task <IActionResult> ConfirmDelete(int id) { var post = _postService.GetPostById(id); await _postService.ClearReplies(id); await _postService.DeletePost(id); return(RedirectToAction("Index", "Forum", new { id = post.Forum.Id })); }