public async Task <IActionResult> Edit(CommentCrudModel model)
        {
            if (!ModelState.IsValid)
            {
                return(this.RedirectToAction(nameof(AnswersController.Index), "Answers", new { id = model.QuestionId }));
            }

            await this.comments.EditAsync(model.Id, model.Content, this.GetUserId());

            return(this.RedirectToAction(nameof(AnswersController.Index), "Answers", new { id = model.QuestionId }));
        }
        public async Task <IActionResult> Delete(CommentCrudModel model)
        {
            await this.comments.DeleteAsync(model.Id, this.GetUserId());

            return(this.RedirectToAction(nameof(AnswersController.Index), "Answers", new { id = model.QuestionId }));
        }