public static List<Framework.Data.LogImage> GetLogImages(Framework.Data.LogImageCollection lCollection, Framework.Data.LogCollection logCollection, string GeocacheCode) { List<Framework.Data.LogImage> result = new List<Framework.Data.LogImage>(); List<Framework.Data.Log> logs = GetLogs(logCollection, GeocacheCode); foreach (Framework.Data.Log l in logs) { result.AddRange(lCollection.GetLogImages(l.ID)); } return result; }
public static List<Framework.Data.LogImage> GetLogImages(Framework.Data.LogImageCollection lCollection, string logId) { //grouping return lCollection.GetLogImages(logId); /* List<Framework.Data.LogImage> result = null; result = (from Framework.Data.LogImage l in lCollection where l.LogID == logId select l).ToList(); return result; * */ }