public async Task <IActionResult> Index(string id) { var assetData = await _assetsRepository.GetAssetsDataAsync(id); if (assetData == null) { assetData = await _coinprismReader.GetAssetDataAsync(id); await _assetsRepository.WriteAssetsDataAsync(assetData); } var model = new AssetsViewModel { Asset = assetData }; return(View(model)); }