public IActionResult OnPost(AddComment command, string productSlug)
        {
            command.Type = CommentType.Product;
            var result = _commentApplication.Add(command);

            return(RedirectToPage("/Product", new { Id = productSlug }));
        }
        public IActionResult OnPost(AddComment command, string articleSlug)
        {
            command.Type = CommentType.Article;
            var result = _commentApplication.Add(command);

            return(RedirectToPage("/Article", new { Id = articleSlug }));
        }
 public RedirectToPageResult OnPost(AddComment command)
 {
     _commentApplication.Add(command);
     return(RedirectToPage("./ArticleDetails", new { id = command.ArticleId }));
 }