protected void btnAddEmployee_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(txtNombre.Text) && !string.IsNullOrEmpty(txtUsername.Text) && !string.IsNullOrEmpty(txtPassword.Text)) { Rogers_API api = new Rogers_API(); api.addEmployeeSOAP(txtNombre.Text, txtPassword.Text, txtUsername.Text, bool.Parse(ddlJob.SelectedValue)); Response.Redirect("AdminEmployees.aspx"); } }
protected void btnAddPlate_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(txtNombre.Text) && !string.IsNullOrEmpty(txtPrecio.Text)) { try { fillPlate(); Rogers_API api = new Rogers_API(); api.addproductSOAP(plate.PRODUCTNAME, plate.DESCRIPTION, plate.PRICE, plate.IMAGEURI, plate.isoutofstock, plate.category); Session.Remove("plate"); Response.Redirect("AdminPlates.aspx"); } catch (Exception ex) { } } }