using System.Collections.Generic;
public static void Main()
List<int> allowedBPs = new List<int>(){1,3,5};
List<int> dataBpids = new List<int>(){1,2,3,4,5};
var dataWithSecurity = dataBpids.Where(r => allowedBPs.Any(bpid => bpid == r));
foreach(var data in dataWithSecurity)
Console.WriteLine(data.ToString());