public List <FlowEntity> GetAllList(string keyword = "") { var expression = ExtLinq.True <FlowEntity>(); if (!string.IsNullOrEmpty(keyword)) { expression = expression.And(t => t.FullName.Contains(keyword)); expression = expression.Or(t => t.EnCode.Contains(keyword)); } return(service.IQueryable(expression).OrderBy(t => t.SortCode).ToList()); }