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
stringThe 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
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.
public Activity? GetActivityById(string id)
Parameters
id
stringThe identifier.
Returns
GetFoundActivitiesCount(string)
Gets the number of activities matching the search text.
public int GetFoundActivitiesCount(string searchText)
Parameters
searchText
stringThe search text.
Returns
- int
The number of activities matching the search text.
SaveActivity(Activity)
Saves the activity.
public void SaveActivity(Activity activity)
Parameters
activity
ActivityThe activity.