protected void Create(object sender, EventArgs e) { if (IsValid) { ProductItem newProduct = new ProductItem { playerFirstName = txtPlayerFirstName.Text, playerLastName = txtPlayerLastName.Text, teamID = ddlTeamList.SelectedValue, productDescription = txtProductDescription.Text, productImage = fullImage.FileName, productPrice = Convert.ToDouble(txtPrice.Text) }; uploadImageFile(fullImage); if (ProductItem.addProduct(newProduct)) { Response.Redirect("~/UL/AdminAccount"); } else { Response.Redirect("~/UL/AdminCreateProduct"); } } }