Click or drag to resize
ISelectorControllerTViewModelGet Method (String, Int32)
Get view model according to ID and objType.

Namespace: CMS.Base.Web.UI
Assembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 12.0.0
Syntax
C#
TViewModel Get(
	string objType,
	int ID
)

Parameters

objType
Type: SystemString
Object type used to identify different data types within one controller.
ID
Type: SystemInt32
Object identifier.

Return Value

Type: TViewModel
HTTP status code 400 Bad Request, if model is not found; otherwise, HTTP status code 200 OK with serialized TViewModel view model.
See Also