Пример #1
0
        public AssetToken get_assets_find_Name(AssetSearch search)
        {
            var asset = _assets.FindAsset(search.Name);

            return(asset == null ? new AssetToken {
                url = search.Name, file = "NOT FOUND"
            } : new AssetToken(asset));
        }
Пример #2
0
 public AssetToken get_assets_find_Name(AssetSearch search)
 {
     var asset = _assets.FindAsset(search.Name);
     return asset == null ? new AssetToken {url = search.Name, file = "NOT FOUND"} : new AssetToken(asset);
 }