public async STT.Task <IActionResult> Update([FromRoute] Guid id, [FromBody] SAVM.Scenario scenario, CancellationToken ct) { var updatedScenario = await _ScenarioService.UpdateAsync(id, scenario, ct); return(Ok(updatedScenario)); }
public async STT.Task <IActionResult> Create([FromBody] SAVM.Scenario scenario, CancellationToken ct) { var createdScenario = await _ScenarioService.CreateAsync(scenario, ct); return(CreatedAtAction(nameof(this.Get), new { id = createdScenario.Id }, createdScenario)); }