Method JavaScript
JavaScript(ControllerBase, String)
Creates a new JavaScriptResult response object instance from the provided
script
string.
Declaration
public static JavaScriptResult JavaScript(this ControllerBase controller, string script)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Mvc.ControllerBase | controller | The Microsoft.AspNetCore.Mvc.ControllerBase instance. |
String | script | The JavaScript string to initialise the response with. |
Returns
Type | Description |
---|---|
JavaScriptResult | The created JavaScriptResult response object instance. |