File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/samples/WebApiSample/WebApiSample/Controllers Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 5
5
using Microsoft . AspNetCore . Mvc ;
6
6
using Microsoft . Extensions . Logging ;
7
7
using Newtonsoft . Json . Linq ;
8
+ using WebApiSample . Workflows ;
8
9
using WorkflowCore . Interface ;
9
10
using WorkflowCore . Models ;
10
11
@@ -22,9 +23,9 @@ public EventsController(IWorkflowController workflowService)
22
23
}
23
24
24
25
[ HttpPost ( "{eventName}/{eventKey}" ) ]
25
- public async Task < IActionResult > Post ( string eventName , string eventKey , [ FromBody ] object eventData )
26
+ public async Task < IActionResult > Post ( string eventName , string eventKey , [ FromBody ] MyDataClass eventData )
26
27
{
27
- await _workflowService . PublishEvent ( eventName , eventKey , eventData ) ;
28
+ await _workflowService . PublishEvent ( eventName , eventKey , eventData . Value1 ) ;
28
29
return Ok ( ) ;
29
30
}
30
31
You can’t perform that action at this time.
0 commit comments