public static CustomerDeliverDates CreateInstance(PreAbonnementProdukt preAbonnement)
 {
     return(new CustomerDeliverDates()
     {
         DayOfWeek = PauseSystem.Helpers.UIHelper.ToSentenceCase(System.Globalization.CultureInfo.GetCultureInfo("da-DK").DateTimeFormat.GetDayName((DayOfWeek)(preAbonnement.DayOfWeek))),
         Date = preAbonnement.StartDate,
         DateString = preAbonnement.StartDate.ToShortDateString(),
         Deliveries = new List <CustomerDelivery> {
             CustomerDelivery.CreateInstance(preAbonnement)
         }
     });
 }
 public static CustomerDeliverDates CreateInstance(LeveringsProdukt levering)
 {
     return(new CustomerDeliverDates()
     {
         DayOfWeek = PauseSystem.Helpers.UIHelper.ToSentenceCase(System.Globalization.CultureInfo.GetCultureInfo("da-DK").DateTimeFormat.GetDayName(levering.TurLevering.Ture.Dato.DayOfWeek)),
         Date = levering.TurLevering.Ture.Dato,
         DateString = levering.TurLevering.Ture.Dato.ToShortDateString(),
         Deliveries = new List <CustomerDelivery> {
             CustomerDelivery.CreateInstance(levering)
         }
     });
 }