예제 #1
0
        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)));
        }
예제 #2
0
 public Task <AssetExtendedInfo> GetAssetExtendedInfoAsync(string assetId)
 {
     return(_assetsService.AssetExtendedInfoGetAsync(assetId));
 }