示例#1
0
 public async Task <IActionResult> StartPlotGenerationAsync([FromForm] PlottingConfiguration configuration)
 {
     _ = Task.Run(() => PlotManager.GeneratePlotAsync(configuration));
     return(Ok());
 }
示例#2
0
 public IActionResult StartPlotGeneration([FromBody] PlottingConfiguration configuration)
 {
     _ = Task.Run(() => PlotManager.GeneratePlotAsync(configuration));
     return(Ok());
 }