public async Task <IActionResult> Add(AddCommentViewModel model)
        {
            Result result  = new Result(false, "Unable to add comment at this time.");
            string dateNow = string.Empty;
            string token   = SecurityHelper.GetAntiXsrfRequestToken(HttpContext);

            if (String.IsNullOrWhiteSpace(model.Content))
            {
                result.Message = "Comment is required;";
            }
            else if (ModelState.IsValid)
            {
                Comment comment = new Comment
                {
                    PostId              = model.PostId,
                    Author              = model.Author,
                    Content             = model.Content,
                    RowCreatedBy        = 1,
                    RowModifiedBy       = 1,
                    RowCreatedDateTime  = DateTime.Now,
                    RowModifiedDateTime = DateTime.Now
                };

                dateNow = comment.RowCreatedDateTime.ToString("MMM dd, yyyy HH:mm:ss");

                try
                {
                    await _comment.AddCommentAsync(comment);

                    result.Succeeded = true;
                    result.Message   = "Comment added.";
                }
                catch (Exception ex)
                {
                    SysException exception = new SysException(ex)
                    {
                        Url = UrlHelper.GetRequestUrl(HttpContext)
                    };
                }
            }

            return(Json(new { result, token, date = dateNow }));
        }