public async Task <ReturnResult <Attachment> > AddOrUpdateAttachment( IFormFile file, AttachmentTypesEnm attType, Guid?attachmentId = null, string title = null) { return(await _attachmentRepository.AddOrUpdateAttachmentAsync(_appSettingsService.AttachmentsPath, file, attType)); }