public static void createReport() { List <Zone> zones = ServiceZone.GetAllZones(); // descending order of zones by level List <ZoneWithLevel> ZonesdescLevel = descStars(zones); string reportemailbody = ""; if (ZonesdescLevel.Count != 0) { reportemailbody = builddescStars(reportemailbody, ZonesdescLevel); // descending order of zones by Note List <ZoneWithNote> ZonesdescNote = descNotes(zones); reportemailbody = builddescNotes(reportemailbody, ZonesdescNote); } // ascending order of zones by Progress List <ZoneWithProgress> ZonesascProgress = ascProgress(zones); if (ZonesascProgress.Count != 0) { reportemailbody = buildascProgress(reportemailbody, ZonesascProgress); } //gettin zones non auditées List <Audit> auditsnonaccompli = getzonesnonauditées(); reportemailbody = buildnonauditées(reportemailbody, auditsnonaccompli); if (ZonesdescLevel.Count != 0) { //getting audieurs to calculate how much they gave points List <Auditeur> auditeurs = ServiceAuditeur.GetAllAuditeursWD(); reportemailbody = buildauditeurpoints(reportemailbody, auditeurs); } ServiceEmail.sendHTMLEmail("*****@*****.**", "Report Five Stars", reportemailbody); }