示例#1
0
        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;
        }
示例#2
0
 private static DateAndDetail MapDateAndDetail(CaseDateAndDetail dateAndDetail)
 {
     return new DateAndDetail()
     {
         Id = dateAndDetail.Id,
         Date = dateAndDetail.Date,
         Text = dateAndDetail.Text,
         Documents = Mappers.MapDocuments(dateAndDetail.Documents),
     };
 }