コード例 #1
0
        public async Task DeleteEmailByEmailID(int emailId)
        {
            var email = await _emailRepository.GetAsync(emailId);

            await _emailFactory.DeleteMessageAsync(email.CreatedAt);

            await _emailRepository.DeleteAsync(email);
        }
コード例 #2
0
        public async Task DeleteEmailByEmailID(int emailId)
        {
            var email = await _emailMessageRepository.GetAsync(emailId);

            await _emailClientFactory.DeleteMessageAsync(email.DeliveredAt);

            await _emailMessageRepository.DeleteAsync(email);
        }