/// <summary> /// The function updates the party details. /// </summary> /// <returns></returns> Returns if the update succseed or not public string UpdateParty() { con.sqlCommand("UpdatePartyDetails"); con.InsertValstring("@partyName", PartyName.Trim()); con.InsertValint("@member_size", membersSize); con.InsertValstring("@platform", platform.Trim()); return(con.getVal("@Result")); }
public int addNewKalpi(Kalpi kalpi) { con.sqlCommand("addNewKalpi"); con.InsertValstring("@kalpiCode", kalpi.KalpiCode); con.InsertValstring("@kalpiName", kalpi.KalpiName); con.InsertValstring("@address", kalpi.Address); con.InsertValstring("@city", kalpi.City); con.InsertValstring("@area", this.Area); con.InsertValint("@maxVoters", kalpi.MaxVoters); return(int.Parse(con.getVal("Result").ToString())); }
public DataRow SerachMember(int key) { con.sqlCommand("SearchPartyMember"); con.InsertValint("@member_code", key); DataTable tab = con.GetData("SearchPartyMember"); return(tab.Rows[0]); }