public async Task <IActionResult> GetDashboard() { var nodeStatistics = await _nodeService.GetNodeStatistics(); var clientCount = await _clientStore.GetClientCount(); var jobCount = await _store.GetJobCount(); return(new JsonResult(new ApiResult(200, null, new { clientCount, nodeStatistics.Data.NodeCount, offlineCount = nodeStatistics.Data.OfflineCount, nodeStatistics.Data.TriggerTimes, jobCount }))); }