Exemple #1
0
        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));
        }
Exemple #2
0
        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));
        }