//Adding Product to Database public int Add(ProductInfo Product) { int data = SQLHelper.Insert(SQLHelper.ProductInsertCommand, Product); int image = SQLHelper.AddImage(SQLHelper.ProductImageInsertCommand, Product); if (data > 0 && image > 0) { return(1); } else if (data <= 0) { return(0); } else { return(-1); } }