public async Task DeleteEmailByEmailID(int emailId) { var email = await _emailRepository.GetAsync(emailId); await _emailFactory.DeleteMessageAsync(email.CreatedAt); await _emailRepository.DeleteAsync(email); }
public async Task DeleteEmailByEmailID(int emailId) { var email = await _emailMessageRepository.GetAsync(emailId); await _emailClientFactory.DeleteMessageAsync(email.DeliveredAt); await _emailMessageRepository.DeleteAsync(email); }