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