public Expression <Func <PostLike, bool> > GetExpressionToFilter(PostLikeQuery query)
        {
            Expression <Func <PostLike, bool> > expression = null;

            if (query.PostId.HasValue)
            {
                expression = x => x.PostId == query.PostId;
            }

            if (!string.IsNullOrEmpty(query.IpAddress))
            {
                expression = ExpressionHelper.And <PostLike>(expression, x => x.IPAddress == query.IpAddress);
            }

            return(expression);
        }
        public Task <QueryResult <PostLike> > ListAsync(PostLikeQuery query)
        {
            Expression <Func <PostLike, bool> > filter = GetExpressionToFilter(query);

            return(_PostLikeRepository.GetAsync(query, filter));
        }