private static async Task SendFailedMail(string mailID, Message message) { var reattempt = await EmailClient.SendMessageAsync(message); DBHelper.UpdateMailToDB(mailID, reattempt); }
public static async Task SendMessage(Message message) { var successFlag = await EmailClient.SendMessageAsync(message); DBHelper.SaveMailToDB(message, successFlag); }