Problem: Get users which exists in all entities, like Ali exists in ENT01,ENT02,ENT03
I have a list I want to get users which exist in each group. In given Image detail OfficerName"Ali" exist in all three EntityCode. I need to get users which exist in given list of EntityCodes
List of EntitUser retrieved from Database table. using below query
List<string> EntityCodes = new List<string>();// have 3 EntCodes, can have more
var Contacts=_db.EntityUser.Where(x => x.MasterGroupCode == GroupCode && x.IsCurrent==true).ToList();
I get a list of EntityUser consisting these properties
public partial class EntityUser
{
public string Email { get; set; }
public System.Guid Id { get; set; }
public string EntityCode { get; set; }
public string OfficerType { get; set; }
public string OfficerName { get; set; }
}
Any Help would be much appricated
