Пример #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> GetDefaultAssetExtendedInfoAsync()
 {
     return(_assetsService.AssetExtendedInfoGetDefaultAsync());
 }