Exemple #1
0
        public async Task <IActionResult> Put([FromBody] Trace t)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }

            Trace trace = await _traceRepository.UpdateAsync(t);

            await _traceRepository.SaveAsync();

            await EnsureOriginAsync(t);

            return(this.Ok(trace));
        }