AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

ContentController..::..ProcessObjectSingle Method

Loads a single published business object by masterId (or by seoName when the ID is empty) and returns it as a serialised OK response. Runs the read-permission check before loading.

Namespace:  AdvantageCSP.AdvantageAPI
Assembly:  AdvantageCSP.API (in AdvantageCSP.API.dll)

Syntax


protected IHttpActionResult ProcessObjectSingle(
	string apiName,
	string lang,
	Guid masterId,
	string seoName
)

Parameters

apiName
Type: String
The API entry name that identifies which business object type to load.
lang
Type: String
The language code (or "default") used to resolve the language id.
masterId
Type: Guid
The master identifier of the record; pass Empty to look up by SEO name instead.
seoName
Type: String
The SEO name to look up when masterId is empty.

Return Value

An IHttpActionResult wrapping the serialised record.

See Also


ContentController