예제 #1
0
        public async Task <StatusCodeResult> PostFromCollectorAsync(string collector, [FromBody] Miner miner, CancellationToken token = default)
        {
            var success = await _collectorService.MinerSyncAsync(collector, miner, token);

            if (!success)
            {
                return(BadRequest());
            }

            return(Ok());
        }