Class SubscriptionTypeController
This controller is responsible to manage the subscription types.
Inheritance
System.Object
SubscriptionTypeController
Implements
Inherited Members
Namespace: DotNetNuke.Services.Social.Subscriptions
Assembly: DotNetNuke.dll
Syntax
public class SubscriptionTypeController : ServiceLocator<ISubscriptionTypeController, SubscriptionTypeController>, ISubscriptionTypeController
Constructors
| Improve this Doc View SourceSubscriptionTypeController()
Initializes a new instance of the SubscriptionTypeController class.
Declaration
public SubscriptionTypeController()
Methods
| Improve this Doc View SourceAddSubscriptionType(SubscriptionType)
Creates a new Subscription Type. If the operation succeed the SubscriptionTypeId property of the Subscription entity will be filled up.
Declaration
public void AddSubscriptionType(SubscriptionType subscriptionType)
Parameters
Type | Name | Description |
---|---|---|
SubscriptionType | subscriptionType | Subscription Type. |
DeleteSubscriptionType(SubscriptionType)
Deletes a Subscription Type from the system.
Declaration
public void DeleteSubscriptionType(SubscriptionType subscriptionType)
Parameters
Type | Name | Description |
---|---|---|
SubscriptionType | subscriptionType | Subscription Type. |
GetFactory()
Gets the service locator factory.
Declaration
protected override Func<ISubscriptionTypeController> GetFactory()
Returns
Type | Description |
---|---|
Func<ISubscriptionTypeController> | A factory function. |
Overrides
DotNetNuke.Framework.ServiceLocator<DotNetNuke.Services.Social.Subscriptions.ISubscriptionTypeController, DotNetNuke.Services.Social.Subscriptions.SubscriptionTypeController>.GetFactory()
|
Improve this Doc
View Source
GetSubscriptionType(Func<SubscriptionType, Boolean>)
Retrieves a Single Subscription Type that match the where predicate.
Declaration
public SubscriptionType GetSubscriptionType(Func<SubscriptionType, bool> predicate)
Parameters
Type | Name | Description |
---|---|---|
Func<SubscriptionType, System.Boolean> | predicate | Where Predicate. |
Returns
Type | Description |
---|---|
SubscriptionType | Subscription Type. |
GetSubscriptionTypes()
Retrieves all the Subscription Type.
Declaration
public IEnumerable<SubscriptionType> GetSubscriptionTypes()
Returns
Type | Description |
---|---|
IEnumerable<SubscriptionType> | Subscription Types collection. |
GetSubscriptionTypes(Func<SubscriptionType, Boolean>)
Retrieves a set of Subscription Types specifying a where predicate.
Declaration
public IEnumerable<SubscriptionType> GetSubscriptionTypes(Func<SubscriptionType, bool> predicate)
Parameters
Type | Name | Description |
---|---|---|
Func<SubscriptionType, System.Boolean> | predicate | Where predicate. |
Returns
Type | Description |
---|---|
IEnumerable<SubscriptionType> | Subscription Type collection. |