public async Task <ActionResult> GetListAsync(int index, int rows, string search)
        {
            if (string.IsNullOrWhiteSpace(search))
            {
                search = "";
            }
            Domain.Posts.Hub hub  = new Domain.Posts.Hub();
            Domain.Resp      resp = await hub.GetListAsync(index, rows, search, Domain.Posts.Post.PostState.Enabled);

            return(Pack(resp));
        }
        public async Task <ActionResult> GetListAsync(int index, int rows, string search, string state)
        {
            if (string.IsNullOrWhiteSpace(search))
            {
                search = "";
            }

            Domain.Posts.Post.PostState s = Domain.Posts.Post.PostState.NotSelected;
            if (Enum.TryParse(typeof(Domain.Posts.Post.PostState), state, true, out object result))
            {
                s = (Domain.Posts.Post.PostState)result;
            }

            Domain.Posts.Hub hub  = new Domain.Posts.Hub();
            Resp             list = await hub.GetListAsync(index, rows, search, s);

            return(Pack(list));
        }