Click or drag to resize
ICampaignListItemViewModelServiceGetModel Method
Method takes CampaignInfo and creates new instance of CampaignListItemViewModel containing all values required for communication between Web API and javascript modules.

Namespace: CMS.WebAnalytics.Web.UI.Internal
Assembly: CMS.WebAnalytics.Web.UI (in CMS.WebAnalytics.Web.UI.dll) Version: 11.0.0
Syntax
C#
CampaignListItemViewModel GetModel(
	CampaignInfo campaign,
	DateTime dateTime
)

Parameters

campaign
Type: CMS.WebAnalyticsCampaignInfo
Campaign info obtained from the database
dateTime
Type: SystemDateTime
Datetime, used to calculate the current status of campaign

Return Value

Type: CampaignListItemViewModel
Exceptions
ExceptionCondition
ArgumentNullExceptioncampaign is null
See Also