Example #1
0
 public IQueryable <Variable> SearchVariables(string?search)
 {
     return(search is null
         ? _variableStore.Query()
         : _variableStore.Query()
            .Where(x =>
                   x.Name.Contains(search) ||
                   (x.Namespace != null && x.Namespace.Contains(search))));
 }