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