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.Web.UI
Assembly: CMS.WebAnalytics.Web.UI (in CMS.WebAnalytics.Web.UI.dll) Version: 11.0.0
Syntax
C#
public CampaignEditViewModel Post(
	CampaignEditViewModel model
)

Parameters

model
Type: CMS.WebAnalytics.Web.UICampaignEditViewModel
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