Click or drag to resize
CampaignControllerPost Method
Performs saving of the CampaignInfo corresponding to the given CampaignEditViewModel. The CampaignInfo is inserted with the values obtained from model.

Namespace: CMS.WebAnalytics
Assembly: CMS.WebAnalytics (in CMS.WebAnalytics.dll) Version: 10.0.0
Syntax
C#
public CampaignEditViewModel Post(
	CampaignEditViewModel model
)

Parameters

model
Type: CMS.WebAnalyticsCampaignEditViewModel
Instance of updated view-model. This instance will be used to create corresponding CampaignInfo

Return Value

Type: CampaignEditViewModel
HTTP status code 400 Bad request, if model state of bound model was not valid; otherwise, HTTP status code 200 OK with serialized model. This campaign has CampaignID filled with the data from the DB.
Remarks
CampaignName is set to CODENAME_AUTOMATIC to let the CampaignInfoProvider decide what codename should be used based on the CampaignDisplayName.
See Also