public async STT.Task <IActionResult> Update([FromRoute] Guid id, [FromBody] SAVM.Result result, CancellationToken ct) { var updatedResult = await _ResultService.UpdateAsync(id, result, ct); return(Ok(updatedResult)); }
public async STT.Task <IActionResult> Create([FromBody] SAVM.Result result, CancellationToken ct) { var createdResult = await _ResultService.CreateAsync(result, ct); return(CreatedAtAction(nameof(this.Get), new { id = createdResult.Id }, createdResult)); }