Class ActivityService
- Namespace
- Dynamicweb.Data
Processing
- Assembly
- Dynamicweb.Core.dll
Service for handling activities.
- Inheritance
-
Activity
Service
- Inherited Members
Constructors
ActivityService()
Initializes a new instance of the Activity
Methods
DeleteActivity(string)
Deletes the activity.
Parameters
id
stringThe identifier.
GetActivities()
Gets the activities.
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
stringThe search text.
pageNumber
intThe page number.
pageSize
intSize of the page.
orderBy
stringThe order by.
Returns
- IEnumerable<Activity>
A collection of activities.
GetActivityById(string)
Gets an activity by id.
Parameters
id
stringThe identifier.
Returns
GetFoundActivitiesCount(string)
Gets the number of activities matching the search text.
Parameters
searchText
stringThe search text.
Returns
- int
The number of activities matching the search text.
SaveActivity(Activity)
Saves the activity.
Parameters
activity
ActivityThe activity.