Class ActivityService
- Namespace
- Dynamicweb.DataProcessing
- Assembly
- Dynamicweb.DataProcessing.dll
Service for handling activities.
public class ActivityService
- Inheritance
-
ActivityService
- Inherited Members
Constructors
ActivityService()
Initializes a new instance of the ActivityService class.
public ActivityService()
- See Also
Methods
DeleteActivity(string)
Deletes the activity.
public void DeleteActivity(string id)
Parameters
id
string- The identifier.
- See Also
GetActivities()
Gets the activities.
public IEnumerable<Activity> GetActivities()
Returns
- IEnumerable<Activity>
- A collection of activities.
- See Also
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.
- See Also
GetActivityById(string)
Gets an activity by id.
public Activity GetActivityById(string id)
Parameters
id
string- The identifier.
Returns
- See Also
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.
- See Also
SaveActivity(Activity)
Saves the activity.
public void SaveActivity(Activity activity)
Parameters
activity
Activity- The activity.
- See Also