示例#1
0
 public void Add(VegHerbSampleDTO subItem)
 {
     if (subItem != null)
     {
         this.herbs.Add(subItem);
     }
 }
示例#2
0
        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;
        }