This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user