Пример #1
0
        public List <ProjectsEntity> GetList(Pagination pagination, string queryJson)
        {
            var expression = ExtLinq.True <ProjectsEntity>();
            var queryParam = queryJson.ToJObject();

            if (!queryParam["keyword"].IsEmpty())
            {
                string keyword = queryParam["keyword"].ToString();
                expression = expression.And(t => t.F_ProjectName.Contains(keyword));
            }
            return(service.FindList(expression, pagination));
        }