private static ServiceClientModel.DailyRetentionFormat GetServiceClientLTRDailyRetentionFormat( DailyRetentionFormat psFormat) { if (psFormat == null) { return(null); } ServiceClientModel.DailyRetentionFormat serviceClientFormat = new ServiceClientModel.DailyRetentionFormat(); if (psFormat.DaysOfTheMonth != null) { serviceClientFormat.DaysOfTheMonth = new List <ServiceClientModel.Day>(); foreach (Day psDay in psFormat.DaysOfTheMonth) { ServiceClientModel.Day serviceClientDay = new ServiceClientModel.Day() { Date = psDay.Date, IsLast = psDay.IsLast }; serviceClientFormat.DaysOfTheMonth.Add(serviceClientDay); } } return(serviceClientFormat); }
private static ServiceClientModel.DailyRetentionFormat GetServiceClientLTRDailyRetentionFormat( DailyRetentionFormat psFormat) { if (psFormat == null) { return null; } ServiceClientModel.DailyRetentionFormat serviceClientFormat = new ServiceClientModel.DailyRetentionFormat(); if (psFormat.DaysOfTheMonth != null) { serviceClientFormat.DaysOfTheMonth = new List<ServiceClientModel.Day>(); foreach (Day psDay in psFormat.DaysOfTheMonth) { ServiceClientModel.Day serviceClientDay = new ServiceClientModel.Day() { Date = psDay.Date, IsLast = psDay.IsLast }; serviceClientFormat.DaysOfTheMonth.Add(serviceClientDay); } } return serviceClientFormat; }