Ejemplo n.º 1
0
 /// <summary>
 /// Creates a <see cref="INotificationMessage"/> and saves it to the database
 /// </summary>
 /// <param name="methodKey">The <see cref="INotificationMethod"/> key</param>
 /// <param name="name">The name of the message (primarily used in the back office UI)</param>
 /// <param name="description">The name of the message (primarily used in the back office UI)</param>
 /// <param name="fromAddress">The senders or "from" address</param>
 /// <param name="recipients">A collection of recipient address</param>
 /// <param name="bodyText">The body text of the message</param>
 /// <returns>Attempt{INotificationMessage}</returns>
 public Attempt <INotificationMessage> CreateNotificationMessageWithKey(Guid methodKey, string name, string description, string fromAddress,
                                                                        IEnumerable <string> recipients, string bodyText)
 {
     return(_notificationMessageService.CreateNotificationMethodWithKey(methodKey, name, description, fromAddress, recipients, bodyText));
 }