public void Add(VegHerbSampleDTO subItem) { if (subItem != null) { this.herbs.Add(subItem); } }
public HerbSampleDTO(Guid vegSampleId, VegHerbSampleDTO innerItem) { MethodContract.Assert(!Guid.Empty.Equals(vegSampleId), nameof(vegSampleId)); MethodContract.NotNull(innerItem, nameof(innerItem)); this.VegSampleId = vegSampleId; this.TaxaUnitId = innerItem.TaxaUnitId; this.PercentCover = innerItem.PercentCover; this.Description = innerItem.Description; }