public static void SendWarning(string to, Prescription prescription) { _emailFactory = new EmailFactory(to); var mail = _emailFactory.GetEmailWarning(prescription); Service.SendAsync(mail.ToIdentityMessage()); }