public List <Warehouse> GetList(Pagination pagination, string keyword, string userid) { var expression = ExtLinq.True <Warehouse>(); expression = expression.And(t => t.F_UserId == userid); if (!string.IsNullOrEmpty(keyword)) { expression = expression.And(t => t.F_WarehouseName.Contains(keyword)); expression = expression.Or(t => t.F_Remark.Contains(keyword)); } return(service.FindList(expression, pagination)); }