Пример #1
0
        public async Task <IActionResult> PostNewResult([FromBody] ResultDto resultDto, ApiVersion apiVersion,
                                                        CancellationToken cancellationToken)
        {
            var cid = await _resultsService.CreateAsync(resultDto, cancellationToken);

            return(CreatedAtRoute(nameof(GetSingle), new { id = cid, version = $"{apiVersion}" }, null));
        }