コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }