Exemple #1
0
        public async Task AddAttachment <TProperties>(IHasAttachment <TEntity> attachmentInfo, TProperties properties)
        {
            attachmentInfo.SerializeContent(properties);

            await _attachmentRepository.InsertOrUpdateAndGetIdAsync(Attachment.CreateAttachment(attachmentInfo));
        }
Exemple #2
0
 public async Task AddAttachment(IHasAttachment <TEntity> attachmentInfo)
 {
     await _attachmentRepository.InsertOrUpdateAndGetIdAsync(Attachment.CreateAttachment(attachmentInfo));
 }