public GenericResponse AddSubComment(AddSubCommentRequest request)
        {
            GenericResponse response = new GenericResponse();

            response.Errors = new List <string>();
            bool validation = _authKeyRepository.Validate(request.RequesterId, request.AuthKey);

            if (!validation)
            {
                response.StatusCode = 400;
                response.Errors.Add("You do not have access");
            }
            else
            {
                _commentRepository.AddToComment(request.RequesterId, request.PostId, request.ParentCommentId, request.Content);
                response.StatusCode = 200;
            }
            return(response);
        }
 public JsonResult PostSub(AddSubCommentRequest request)
 {
     return(Json(_commentService.AddSubComment(request)));
 }