public async Task <IActionResult> GetAssetDescription(string assetId) { var extendedInfo = await _assetsService.AssetExtendedInfoGetAsync(assetId) ?? await _assetsService.AssetExtendedInfoGetDefaultAsync(); if (string.IsNullOrEmpty(extendedInfo.Id)) { extendedInfo.Id = assetId; } return(Ok(ConvertToAssetDescription(extendedInfo))); }
public Task <AssetExtendedInfo> GetAssetExtendedInfoAsync(string assetId) { return(_assetsService.AssetExtendedInfoGetAsync(assetId)); }