public async STT.Task <IActionResult> Update([FromRoute] Guid id, [FromBody] SAVM.ScenarioTemplate scenarioTemplate, CancellationToken ct)
        {
            scenarioTemplate.ModifiedBy = User.GetId();
            var updatedScenarioTemplate = await _scenarioTemplateService.UpdateAsync(id, scenarioTemplate, ct);

            return(Ok(updatedScenarioTemplate));
        }
Exemplo n.º 2
0
        public async STT.Task <IActionResult> Update([FromRoute] Guid id, [FromBody] SAVM.ScenarioTemplateForm scenarioTemplateForm, CancellationToken ct)
        {
            var updatedScenarioTemplate = await _scenarioTemplateService.UpdateAsync(id, scenarioTemplateForm, ct);

            return(Ok(updatedScenarioTemplate));
        }