/// <summary> /// Gets all products in the catalog /// </summary> public ProductDS GetCatalogProducts() { ProductDS productDS = new ProductDS(); try { ProductBusinessObject productBO = new ProductBusinessObject(); productBO.GetAllProducts(productDS, 0, 0); } catch (Exception e) { State[STATE_EXCEPTION] = e; State.NavigateValue = "error"; Navigate(); } return(productDS); }
/// <summary> /// Gets all products in the catalog /// </summary> public ProductDS GetCatalogProducts() { ProductDS productDS = new ProductDS(); try { ProductBusinessObject productBO = new ProductBusinessObject(); // fill the products dataset will all of the products in the database productBO.GetAllProducts(productDS, 0, 0); } catch (Exception e) { State[STATE_EXCEPTION] = e; State.NavigateValue = "fail"; Navigate(); } return(productDS); }