Table of Contents

Class ActivityService

Namespace
Dynamicweb.DataProcessing
Assembly
Dynamicweb.Core.dll

Service for handling activities.

public class ActivityService
Inheritance
ActivityService
Inherited Members

Constructors

ActivityService()

Initializes a new instance of the ActivityService class.

public ActivityService()

Methods

DeleteActivity(string)

Deletes the activity.

public void DeleteActivity(string id)

Parameters

id string

The identifier.

GetActivities()

Gets the activities.

public IEnumerable<Activity> GetActivities()

Returns

IEnumerable<Activity>

A collection of activities.

GetActivitiesByPage(string, int, int, string)

Gets the activities by page.

public IEnumerable<Activity> GetActivitiesByPage(string searchText, int pageNumber, int pageSize, string orderBy)

Parameters

searchText string

The search text.

pageNumber int

The page number.

pageSize int

Size of the page.

orderBy string

The order by.

Returns

IEnumerable<Activity>

A collection of activities.

GetActivityById(string)

Gets an activity by id.

public Activity? GetActivityById(string id)

Parameters

id string

The identifier.

Returns

Activity

An instance of Activity, if found, otherwise null.

GetFoundActivitiesCount(string)

Gets the number of activities matching the search text.

public int GetFoundActivitiesCount(string searchText)

Parameters

searchText string

The search text.

Returns

int

The number of activities matching the search text.

SaveActivity(Activity)

Saves the activity.

public void SaveActivity(Activity activity)

Parameters

activity Activity

The activity.

See Also

To top