I have the algorithm that select a data from collection of reportData
private IDictionary<Guid, JobStatistic> GetAgentsStatistics(IList<Guid> agentIds)
{
var agentReportItems = from data in reportData
from agentId in data.AgentIds
where agentIds.Contains(agentId)
group data by agentId;
...
}
But what if agentIds is an empty collection? How to check this situation?