public ActionResult <ItemResponse <Paged <Post> > > PostSelectByThreadId(int pageIndex, int pageSize, int threadId)
        {
            ActionResult result = null;

            try
            {
                Paged <Post> posts = _service.PostSelectByThreadId(pageIndex, pageSize, threadId);
                if (posts == null)
                {
                    result = NotFound404(new ErrorResponse("Records Not Found"));
                }
                else
                {
                    ItemResponse <Paged <Post> > response = new ItemResponse <Paged <Post> >()
                    {
                        Item = posts
                    };
                    result = Ok200(response);
                }
            }
            catch (Exception ex) {
                Logger.LogError(ex.ToString());
                result = StatusCode(500, new ErrorResponse(ex.Message.ToString()));
            }
            return(result);
        }