Exemplo n.º 1
0
        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));
            }
        }
Exemplo n.º 2
0
 public override SizingStandard ToSizingStandard()
 {
     for (int i = 1; i < 13; i++)
     {
         var sizing = GetCaption(i);
         if (sizing != null)
         {
             Sizings.Add(sizing);
         }
     }
     return(base.ToSizingStandard());
 }