private static List<DateAndDetail> MapDatesAndDetails(CaseDateAndDetail[] dateAndDetails) { var result = new List<DateAndDetail>(); if (dateAndDetails != null) { foreach (var dateAndDetail in dateAndDetails) result.Add(Mappers.MapDateAndDetail(dateAndDetail)); } return result; }
private static DateAndDetail MapDateAndDetail(CaseDateAndDetail dateAndDetail) { return new DateAndDetail() { Id = dateAndDetail.Id, Date = dateAndDetail.Date, Text = dateAndDetail.Text, Documents = Mappers.MapDocuments(dateAndDetail.Documents), }; }