public List <Equipment> FindEquipmentsByIds(IEnumerable <int> ids) { if (ids == null || !ids.Any()) { return(new List <Equipment>()); } return(ids.Select(id => Equipments.Single(_ => _.EquipmentId == id)).ToList()); }