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()); }