public async Task <IActionResult> DeleteCommentConfirmed(long id) { var comment = await _groupRepository.GetPostCommentByIdAsync(id); var postId = comment.Post.Id; await _groupRepository.DeleteCommentAsync(comment); return(RedirectToAction(nameof(Details), new { id = comment.Post.Id })); }