コード例 #1
0
ファイル: BlogController.cs プロジェクト: oskarfigura/Blog
        public async Task <IActionResult> DeleteComment(string commentId, string postSlug)
        {
            if (string.IsNullOrEmpty(commentId))
            {
                return(NotFound());
            }

            await _postRepo.DeleteComment(commentId);

            return(Redirect(Url.Action("Post",
                                       new { slug = postSlug }) + CommentsSection));
        }