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
notificationIdsIEnumerable<int>
GetAll()
Gets all ProductEmailNotification
public abstract IEnumerable<ProductEmailNotification> GetAll()
Returns
GetById(int)
Gets ProductEmailNotification by specified id
public abstract ProductEmailNotification? GetById(int notificationId)
Parameters
notificationIdintThe email notification id
Returns
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
notificationIdintThe email notification Id
Returns
GetRelatedUserIds(int)
Gets user ids for specified email notification Id.
public abstract IEnumerable<int> GetRelatedUserIds(int notificationId)
Parameters
notificationIdint
Returns
Save(ProductEmailNotification)
Saves ProductEmailNotification instance
public abstract void Save(ProductEmailNotification notification)
Parameters
notificationProductEmailNotificationThe email notification
SaveRecipients(int, IEnumerable<int>)
Saves recipien relations to specific ProductEmailNotification by Id
public abstract void SaveRecipients(int notificationId, IEnumerable<int> userIds)
Parameters
notificationIdintThe email notification Id
userIdsIEnumerable<int>Collection of recipient ids