protected virtual void Constructing(SizingStandard entity) { var sizings = entity.Sizings.OrderBy(c => c.DisplayOrder); foreach (var item in entity.Sizings) { Sizings.Add(new SizingDTO(item)); } }
public override SizingStandard ToSizingStandard() { for (int i = 1; i < 13; i++) { var sizing = GetCaption(i); if (sizing != null) { Sizings.Add(sizing); } } return(base.ToSizingStandard()); }