Esempio n. 1
0
        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));
        }