示例#1
0
        public async Task <IActionResult> GetAssetAttributeByKey(string assetId, string key)
        {
            var keyValues = await _assetsService.AssetAttributeGetAsync(assetId, key);

            if (keyValues == null)
            {
                return(NotFound());
            }

            return(Ok(keyValues.ConvertToApiModel()));
        }
示例#2
0
 public Task <AssetAttribute> GetAssetAttributesAsync(string assetId, string key)
 {
     return(_assetsService.AssetAttributeGetAsync(assetId, key));
 }