예제 #1
0
 public StallsInventoryTotal(IEnumerable <StallsInventoryRow> rows)
 {
     Section = SectionDTO.Named("total");
     Occupieds.SetItems(rows.SelectMany(_ => _.Occupieds));
     Vacants.SetItems(rows.SelectMany(_ => _.Vacants));
 }
예제 #2
0
 public StallsInventoryRow(SectionDTO section, ICollectionsDB collectionsDB)
 {
     Section = section;
     Occupieds.SetItems(GetOccupieds(collectionsDB));
     Vacants.SetItems(GetVacants(collectionsDB));
 }