Click or drag to resize

DataContextConfigureView(RequestContext, Object) Method

Configures a simple view with common view bag parameters.

Namespace: GSF.Web.Model
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.218-beta
Syntax
public void ConfigureView(
	RequestContext requestContext,
	Object viewBag
)
View Source

Parameters

requestContext  RequestContext
Url.RequestContext for view used to derive route ID, if any.
viewBag  Object
Current view bag.
Remarks
This is normally called from controller before returning view action result. For normal MVC views the common route is "{controller}/{action}/{id}", the {id} of the route is the route ID parameter derived from the route data. In many use cases this is a primary key or action value for the page, e.g., "ShowDeleted".
See Also