This commit is contained in:
2019-06-21 21:28:41 +00:00
parent e9956b64a9
commit 9f2860d0f6

View File

@@ -183,6 +183,8 @@ namespace AyaNova.Biz
else
{
q = NormalizeTag(q);
//TODO: Use the EF CORE TAKE method to restrict the results to a maximum limit
//however need to ensure it doesn't balk when the limit is higher than the number of results (probably not but test that)
return ct.Tag.Where(x => x.Name.Contains(q)).OrderByDescending(x => x.RefCount).Select(x => new TagCloudItem() { Name = x.Name, RefCount = x.RefCount }).ToList();
}
}