public PassFailCollectionMethodViewDataForAngular(PassFailObservationTypeSchema passFailObservationTypeSchema) { PropertiesToObserve = new List <SelectItemSimple>(); var count = 1; passFailObservationTypeSchema.PropertiesToObserve.ForEach(x => { PropertiesToObserve.Add(new SelectItemSimple(count, x)); count++; }); }
public ViewPassFailSchemaDetailViewData(PassFailObservationTypeSchema schema) { PassFailSchema = schema; PropertiesToObserveFormatted = string.Join(", ", schema.PropertiesToObserve.OrderBy(x => x)); }