Created
November 23, 2015 02:04
-
-
Save RyanABailey/a3daa1b4c50397b0883b to your computer and use it in GitHub Desktop.
uCommerce API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// <summary> | |
| /// Get a catalogue | |
| /// </summary> | |
| /// <param name="catalogueName">name of the catalogue</param> | |
| /// <returns>Product catalogue</returns> | |
| public static ProductCatalog GetCatalogue(string catalogueName) | |
| { | |
| List<ProductCatalog> catalogs = UCommerce.Api.CatalogLibrary.GetAllCatalogs(); | |
| return catalogs.FirstOrDefault(productCatalog => productCatalog.Name == catalogueName); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment