/// <summary> /// This function allows Elections Manager to remove a new party from Parties DB (change 'Mode' to "flase"). /// </summary> /// <returns></returns> Returns Result as int (1/0) if the action succeeded or not. public int removeParty() { con.sqlCommand("DeleteParty"); //DeleteParty SQL query con.InsertValstring("@partyName", PartyName); //insert party name. con.InsertValBool("@mode", Mode); //change Mode to "false". return(int.Parse(con.getVal("Result").ToString())); }