Click or drag to resize

WebHostCreateWebController Method (String)

Create a SOWI standard web controller with HTTP context

Namespace:  SIC.Test.Helper
Assembly:  SIC.Test.Helper (in SIC.Test.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
public static WebController Create<WebController>(
	string pAction
)
where WebController : new()

Parameters

pAction
Type: SystemString
Action respectively View name e.g. Index

Type Parameters

WebController
Web controller class based on SOWI Web Controller

Return Value

Type: WebController
Web controller with HTTP context
Remarks
Puts route data values (controller and action) and routes configuration. ControllerContext object and Url object is available.
See Also