자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
public async Task <IActionResult> DeleteCommentConfirmed(long id) { var comment = await _postRepository.GetPostCommentByIdAsync(id); var postId = comment.Post.Id; await _postRepository.DeleteCommentAsync(comment); return(RedirectToAction(nameof(Details), new { id = comment.Post.Id })); }