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