public async Task AddAttachment <TProperties>(IHasAttachment <TEntity> attachmentInfo, TProperties properties) { attachmentInfo.SerializeContent(properties); await _attachmentRepository.InsertOrUpdateAndGetIdAsync(Attachment.CreateAttachment(attachmentInfo)); }
public async Task AddAttachment(IHasAttachment <TEntity> attachmentInfo) { await _attachmentRepository.InsertOrUpdateAndGetIdAsync(Attachment.CreateAttachment(attachmentInfo)); }