private void OnFailed(Failed model)
 {
     Console.WriteLine(model.ToString());
 }
 public HttpResponseMessage SendFailed(string messageId = "1111", string mailingId = "1111", string address = "*****@*****.**")
 {
     var failed = new Failed()
     {
         DateTime = DateTime.Now,
         MailingId = mailingId,
         MessageId = messageId,
         Address = address,
         ServerId = ServerId,
         SecretKey = SecretKey,
         BounceStatus = "5.0.0",
         FromAddress = "*****@*****.**",
         DiagnosticCode = "smtp;550 Requested action not taken: mailbox unavailable",
         FailureCode = 2001,
         FailureType = 0,
         Reason = "550 Requested action not taken: mailbox unavailable",
         RemoteMta = "mx1.example.com"
     };
     return _client.PostAsync("/api/EmailEvent/", failed.ToEncodedContent()).Result;
 }