How do you make use of custom actions in .Net 3.0?
The only code snippet I can find is this:
Code: Select all
[HttpPost("customaction")]
public string CustomAction([FromBody]object jsonString)
{
return DocuViewareControllerActionsHandler.customaction(jsonString);
}
It is not clear to me what "DocuViewareControllerActionsHandler.customaction(jsonString)" does. Is there a way to wire up custom code to DocuViewareControllerActionsHandler? Or do I need to parse the json into an object and build my own custom logic off of it. I have looked at some of the other examples such as "MVC Razor" and "Web Forms" but they don't seem to map onto this example very well.
Documentation for custom action does not really explain how you are supposed to use this method.