Esempio n. 1
0
 public void Save(IEnumerable<Diary> diaries,
     CountCollection counts,
     MonthlyGigCounts monthlyCounts,
     IEnumerable<VenueDiary> venueDiaries,
     IEnumerable<BandDiary> bandDiaries,
     IEnumerable<BandMetadata> bandMetadata,
     IEnumerable<VenueMetadata> venueMetadata,
     IEnumerable<StolenGear> stolenGear,
     IEnumerable<Gig> recentlyUpdated)
 {
     ClearExportFolder();
     WriteDiaries(diaries);
     WriteCounts(counts);
     WriteMonthlyCounts(monthlyCounts);
     WriteVenueDiaries(venueDiaries);
     WriteBandDiaries(bandDiaries);
     WriteBandMetadata(bandMetadata);
     WriteVenueMetadata(venueMetadata);
     WriteRecentlyUpdated(recentlyUpdated);
     ExportImages(venueMetadata);
     WriteStolenGear(stolenGear);
     CopyStolenGearImages();
 }
Esempio n. 2
0
 void WriteCounts(CountCollection counts)
 {
     var jsonCounts = JsonConvert.SerializeObject(counts, Formatting.Indented);
     File.WriteAllText(HostingEnvironment.MapPath("~/Content/Export/") + "counts.json", jsonCounts);
 }