public async Task <StatusCodeResult> PostAsync(string collector, Guid minerId, [FromBody] Snapshot snapshot, CancellationToken token = default) { var success = await _collectorService.SnapshotSyncAsync(collector, minerId, snapshot, token); if (!success) { return(BadRequest()); } return(Ok()); }