private List <NmapLogCollection> nmapLogProcessing(List <FileInfo> p) { List <NmapLog> nmaplogs = new List <NmapLog>(); if (nmaplogs.Count() > 0) { List <NmapLogCollection> collection = new List <NmapLogCollection>(); foreach (NmapLog log in nmaplogs.Where(z => z.LogDateTime.Month == dte1.Value.Month && z.LogDateTime.Year == dte1.Value.Year)) { NmapLogCollection item = new NmapLogCollection(); item.Count = 1; collection.Add(item); } return(collection); } return(new List <NmapLogCollection>()); }
private List <NmapLogCollection> nmapLogProcessing(List <FileInfo> p, DateTime start, DateTime end) { List <NmapLog> nmaplogs = new List <NmapLog>(); nmaplogs = getNLogs(p); if (nmaplogs.Count() > 0) { List <NmapLogCollection> collection = new List <NmapLogCollection>(); foreach (NmapLog log in nmaplogs.Where(z => z.LogDateTime >= start && z.LogDateTime < end)) { NmapLogCollection item = new NmapLogCollection(); item.Count = 1; collection.Add(item); } return(collection); } return(new List <NmapLogCollection>()); }