Class NewsletterMapperExtension
Provides extension methods for mapping newsletter entities.
Inherited Members
Namespace: DataWeb.Mappers
Assembly: DataWeb.Core.dll
Syntax
public static class NewsletterMapperExtension
Methods
ToDataDeliverRow(NewsletterRow)
Converts a NewsletterRow to a DataDeliverRow instance.
Declaration
public static DataDeliverRow ToDataDeliverRow(this NewsletterRow newsletterRow)
Parameters
Type | Name | Description |
---|---|---|
NewsletterRow | newsletterRow | The NewsletterRow to convert. |
Returns
Type | Description |
---|---|
DataDeliverRow | An instance of DataDeliverRow representing the newsletter row. |
ToDataDeliverSubscriber(NewsletterSubscriber)
Converts a NewsletterSubscriber to a DataDeliverSubscriber instance.
Declaration
public static DataDeliverSubscriber ToDataDeliverSubscriber(this NewsletterSubscriber subscriber)
Parameters
Type | Name | Description |
---|---|---|
NewsletterSubscriber | subscriber | The NewsletterSubscriber to convert. |
Returns
Type | Description |
---|---|
DataDeliverSubscriber | An instance of DataDeliverSubscriber representing the subscriber. |
ToNewsletterSubscriberInfo(NewsletterSubscriber)
Converts a NewsletterSubscriber to a NewsletterSubscriberInfo instance.
Declaration
public static NewsletterSubscriberInfo ToNewsletterSubscriberInfo(this NewsletterSubscriber subscriber)
Parameters
Type | Name | Description |
---|---|---|
NewsletterSubscriber | subscriber | The NewsletterSubscriber to convert. |
Returns
Type | Description |
---|---|
NewsletterSubscriberInfo | An instance of NewsletterSubscriberInfo representing the subscriber. |