Exemplo n.º 1
0
        //private UserLogOnApp userLogOnApp = new UserLogOnApp();

        public List <VisitEntity> GetList(Pagination pagination, string keyword)
        {
            var expression = ExtLinq.True <VisitEntity>();

            if (!string.IsNullOrEmpty(keyword))
            {
                expression = expression.And(t => t.F_Name.Contains(keyword));
                //expression = expression.Or(t => t.F_RealName.Contains(keyword));
                //expression = expression.Or(t => t.F_MobilePhone.Contains(keyword));
            }
            //expression = expression.And(t => t.F_Account != "admin");

            return(service.FindList(expression, pagination));
        }