コード例 #1
0
 public async Task AddLinkPreviewAsync(Guid activityId, int previewId)
 {
     var entity = new ActivityToLinkPreviewEntity {
         ActivityId = activityId, LinkPreviewId = previewId
     };
     await _previewRelationRepository.AddAsync(entity);
 }
コード例 #2
0
        public void AddLinkPreview(Guid activityId, int previewId)
        {
            var entity = new ActivityToLinkPreviewEntity {
                ActivityId = activityId, LinkPreviewId = previewId
            };

            _previewRelationRepository.Add(entity);
        }