public List <Resource> GetExampleData() { var list = new List <Resource>(); Bundle data; if (limitPerType == 0) { data = Examples.ImportEmbeddedZip(Settings.ExamplesFilePath).ToBundle(localhost.DefaultBase); } else { data = Examples.ImportEmbeddedZip(Settings.ExamplesFilePath).LimitPerType(limitPerType).ToBundle(localhost.DefaultBase); } if (data.Entry != null && data.Entry.Count() != 0) { foreach (var entry in data.Entry) { if (entry.Resource != null) { list.Add((Resource)entry.Resource); } } } return(list); }
public List <Resource> GetExampleData() { var list = new List <Resource>(); Bundle data = Examples.ImportEmbeddedZip().LimitPerType(5).ToBundle(localhost.Base); if (data.Entry != null && data.Entry.Count() != 0) { foreach (var entry in data.Entry) { if (entry.Resource != null) { list.Add((Resource)entry.Resource); } } } return(list); }