Ejemplo n.º 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()));
        }
Ejemplo n.º 2
0
 public Task <AssetAttribute> GetAssetAttributesAsync(string assetId, string key)
 {
     return(_assetsService.AssetAttributeGetAsync(assetId, key));
 }