private void GetCategory()
 {
     Logic.ShoppingCart s = new Logic.ShoppingCart();
     dlCategories.DataSource = null;
     dlCategories.DataSource = s.GetCategory();
     dlCategories.DataBind();
 }
 private void GetProducts(int categoryId)
 {
     Logic.ShoppingCart s = new Logic.ShoppingCart()
     {
         CategoryId = categoryId
     };
     dlProducts.DataSource = null;
     dlProducts.DataSource = s.GetAllProducts();
     dlProducts.DataBind();
 }
 public void AddNewProduct(ShoppingCart s)
 {
     int productId = GetCategoryId();
     DbAccess.DataAccess.InsertValueToProduct(productId, s);
 }
 public void AddNewCategory(ShoppingCart s)
 {
     int categoryId = GetCategoryId();
     DbAccess.DataAccess.InsertValueToCategory(categoryId, s);
 }
 private void GetProducts(int categoryId)
 {
     Logic.ShoppingCart s = new Logic.ShoppingCart()
     {
         CategoryId = categoryId
     };
     dlProducts.DataSource = null;
     dlProducts.DataSource = s.GetAllProducts();
     dlProducts.DataBind();
 }
 private void GetCategory()
 {
     Logic.ShoppingCart s = new Logic.ShoppingCart();
     dlCategories.DataSource = null;
     dlCategories.DataSource = s.GetCategory();
     dlCategories.DataBind();
 }