This commit is contained in:
@@ -157,11 +157,11 @@ namespace AyaNova.Biz
|
||||
//Contains?
|
||||
if (WildCardSearchTerm.StartsWith("%") && WildCardSearchTerm.EndsWith("%"))
|
||||
{
|
||||
DictionaryMatches.AddRange(await ct.SearchDictionary.Where(m => m.Word.EndsWith(WildCardSearchTerm.Replace("%", ""))).Select(m => m.Id).ToListAsync());
|
||||
DictionaryMatches.AddRange(await ct.SearchDictionary.Where(m => m.Word.Contains(WildCardSearchTerm.Replace("%", ""))).Select(m => m.Id).ToListAsync());
|
||||
}
|
||||
else if (WildCardSearchTerm.EndsWith("%")) //STARTS WITH?
|
||||
{
|
||||
DictionaryMatches.AddRange(await ct.SearchDictionary.Where(m => m.Word.EndsWith(WildCardSearchTerm.Replace("%", ""))).Select(m => m.Id).ToListAsync());
|
||||
DictionaryMatches.AddRange(await ct.SearchDictionary.Where(m => m.Word.StartsWith(WildCardSearchTerm.Replace("%", ""))).Select(m => m.Id).ToListAsync());
|
||||
}
|
||||
else if (WildCardSearchTerm.StartsWith("%"))//ENDS WITH?
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user