Table of Contents

Class ProductEmailNotificationService

Namespace
Dynamicweb.Ecommerce.Products.EmailNotifications
Assembly
Dynamicweb.Ecommerce.dll

Service that provides functionality to fetch, save, delete and manipulate ProductEmailNotification and its ProductEmailNotificationUserRelation

public abstract class ProductEmailNotificationService
Inheritance
ProductEmailNotificationService
Inherited Members

Methods

Delete(IEnumerable<int>)

Deletes ProductEmailNotification by their ids

public abstract void Delete(IEnumerable<int> notificationIds)

Parameters

notificationIds IEnumerable<int>

GetAll()

public abstract IEnumerable<ProductEmailNotification> GetAll()

Returns

IEnumerable<ProductEmailNotification>

GetById(int)

Gets ProductEmailNotification by specified id

public abstract ProductEmailNotification? GetById(int notificationId)

Parameters

notificationId int

The email notification id

Returns

ProductEmailNotification

GetRecipients(int)

Gets all recipients for specific email notification Id, expanding group relation to all its users

public abstract IEnumerable<User> GetRecipients(int notificationId)

Parameters

notificationId int

The email notification Id

Returns

IEnumerable<User>

GetRelatedUserIds(int)

Gets user ids for specified email notification Id.

public abstract IEnumerable<int> GetRelatedUserIds(int notificationId)

Parameters

notificationId int

Returns

IEnumerable<int>

Save(ProductEmailNotification)

Saves ProductEmailNotification instance

public abstract void Save(ProductEmailNotification notification)

Parameters

notification ProductEmailNotification

The email notification

SaveRecipients(int, IEnumerable<int>)

Saves recipien relations to specific ProductEmailNotification by Id

public abstract void SaveRecipients(int notificationId, IEnumerable<int> userIds)

Parameters

notificationId int

The email notification Id

userIds IEnumerable<int>

Collection of recipient ids

To top