• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class SubscriptionTypeController

This controller is responsible to manage the subscription types.

Inheritance
System.Object
ServiceLocator<ISubscriptionTypeController, SubscriptionTypeController>
SubscriptionTypeController
Implements
ISubscriptionTypeController
Inherited Members
ServiceLocator<ISubscriptionTypeController, SubscriptionTypeController>.Instance
ServiceLocator<ISubscriptionTypeController, SubscriptionTypeController>.Factory
ServiceLocator<ISubscriptionTypeController, SubscriptionTypeController>.SetTestableInstance(ISubscriptionTypeController)
ServiceLocator<ISubscriptionTypeController, SubscriptionTypeController>.ClearInstance()
ServiceLocator<ISubscriptionTypeController, SubscriptionTypeController>.GetFactory()
Namespace: DotNetNuke.Services.Social.Subscriptions
Assembly: DotNetNuke.dll
Syntax
public class SubscriptionTypeController : ServiceLocator<ISubscriptionTypeController, SubscriptionTypeController>, ISubscriptionTypeController

Constructors

| Improve this Doc View Source

SubscriptionTypeController()

Initializes a new instance of the SubscriptionTypeController class.

Declaration
public SubscriptionTypeController()

Methods

| Improve this Doc View Source

AddSubscriptionType(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.

| Improve this Doc View Source

DeleteSubscriptionType(SubscriptionType)

Deletes a Subscription Type from the system.

Declaration
public void DeleteSubscriptionType(SubscriptionType subscriptionType)
Parameters
Type Name Description
SubscriptionType subscriptionType

Subscription Type.

| Improve this Doc View Source

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.

| Improve this Doc View Source

GetSubscriptionTypes()

Retrieves all the Subscription Type.

Declaration
public IEnumerable<SubscriptionType> GetSubscriptionTypes()
Returns
Type Description
IEnumerable<SubscriptionType>

Subscription Types collection.

| Improve this Doc View Source

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.

Implements

ISubscriptionTypeController

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS