I need to select DeviceTypeID
from the below query but I can't because I started my query with .Any()
method. Please help me to select DeviceTypeID
var Ids = query.Any(a => a.HospitalDepartments.Any(b =>
b.Units.Any(c => c.Devices.Select(f => f.DeviceTypeID)))).ToList();