This commit is contained in:
2021-11-05 23:30:18 +00:00
parent 3b65cf3ec4
commit 975775ed9c

View File

@@ -91,7 +91,7 @@ namespace AyaNova.Api.Controllers
Users = new List<NameIdItem>();
//add users that match any of the tags, to match they must have at least one of the tags
//iterate available users
var availableUsers = await ct.User.AsNoTracking().Where(x => x.Active == true && x.UserType == UserType.ServiceContractor || x.UserType == UserType.Service).OrderBy(x => x.Name).Select(x => new { x.Name, x.Id, x.Tags }).ToListAsync();
var availableUsers = await ct.User.AsNoTracking().Where(x => x.Active == true && (x.UserType == UserType.ServiceContractor || x.UserType == UserType.Service)).OrderBy(x => x.Name).Select(x => new { x.Name, x.Id, x.Tags }).ToListAsync();
//if user has any of the tags in the list then include them
foreach (var u in availableUsers)
{