public async Task <IActionResult> ListTransactions(int count) { try { return(Json(await _client.ListTransactions(count))); } catch (HttpRequestException e) { return(Json(new RpcResponseModel { RpcIsAlive = false, RpcBlockCount = -1 })); } catch (Exception e) { await _logger.WriteErrorAsync("SolarCoinApi.Monitoring.RpcController", "ListTransactions", "", e); return(StatusCode(500)); } }