/// <summary> /// Reads single cluster. /// </summary> /// <param name="id"></param> /// <returns></returns> public async Task <(ClusterInfo Data, DataStatus Status)> DataReadClusterAsync(int id) { var(cluster, status) = await ReadClusterAsync(id); if (status.IsGood) { Data.UpdateClusters(cluster); } else { _logger?.LogError($"Error code {status.Code} in reading cluster: {status.Explanation}."); } Data.Status = status; return(cluster, Data.Status); }