Exemplo n.º 1
0
        public async Task <IActionResult> AddReport(Report report, CancellationToken token)
        {
            _logger.LogInformation($"Received a report from {report.MachineName} with {report.CurrentIP}");
            var record = await _recordsRepository.CreateAsync(report, token).ConfigureAwait(false);

            return(StatusCode(StatusCodes.Status201Created));
        }