Exemplo n.º 1
0
        public async Task DeleteSendAsync(Send send)
        {
            await _sendRepository.DeleteAsync(send);

            if (send.Type == Enums.SendType.File)
            {
                var data = JsonSerializer.Deserialize <SendFileData>(send.Data);
                await _sendFileStorageService.DeleteFileAsync(send, data.Id);
            }
            await _pushService.PushSyncSendDeleteAsync(send);
        }