Example #1
0
        /// <summary>
        ///  Gets a product by barcode
        /// </summary>
        /// <exception cref="TomiSoft.ProductCatalog.Client.OpenApiGenerated.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="barcode"></param>
        /// <returns>Task of ProductInformationDto</returns>
        public async System.Threading.Tasks.Task <ProductInformationDto> GetByBarcodeAsync(string barcode)
        {
            TomiSoft.ProductCatalog.Client.OpenApiGenerated.Client.ApiResponse <ProductInformationDto> localVarResponse = await GetByBarcodeAsyncWithHttpInfo(barcode);

            return(localVarResponse.Data);
        }
Example #2
0
 /// <summary>
 ///  Gets a product by barcode
 /// </summary>
 /// <exception cref="TomiSoft.ProductCatalog.Client.OpenApiGenerated.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="barcode"></param>
 /// <returns>ProductInformationDto</returns>
 public ProductInformationDto GetByBarcode(string barcode)
 {
     TomiSoft.ProductCatalog.Client.OpenApiGenerated.Client.ApiResponse <ProductInformationDto> localVarResponse = GetByBarcodeWithHttpInfo(barcode);
     return(localVarResponse.Data);
 }