private static List <Attachment> GetAttachments(string timelineEventId, DynamoDbTimelineEventAttachmentRepository attachmentRepo)
 {
     return(attachmentRepo.GetTimelineEventAttachments(timelineEventId).Select(model => new Attachment
     {
         Id = model.Id,
         IsDeleted = model.IsDeleted,
         TimelineEventId = model.TimelineEventId,
         Title = model.Title
     }).ToList());
 }
 private static List <Responses.TimelineEvent> GetTimelineEvents(IEnumerable <string> timelineEventIds, DynamoDbTimelineEventRepository eventRepo, DynamoDbTimelineEventAttachmentRepository attachmentRepo)
 {
     return(timelineEventIds.Select(eventRepo.GetTimelineEventModel)
            .Select(timelineEventModel => new Responses.TimelineEvent
     {
         Id = timelineEventModel.Id,
         Title = timelineEventModel.Title,
         Description = timelineEventModel.Description,
         EventDateTime = timelineEventModel.EventDateTime,
         IsDeleted = timelineEventModel.IsDeleted,
         Location = timelineEventModel.Location,
         LinkedTimelineEventIds = GetLinkedTimelineEvents(timelineEventModel.Id, eventRepo),
         Attachments = GetAttachments(timelineEventModel.Id, attachmentRepo)
     }).ToList());
 }