/// <summary> /// Overload method only used to update loyalty members /// </summary> /// <param name="membershipclass"></param> private static void updateMembership(string membershipclass) { string SQLSelect = createSelectStringForLoyalty(); string SQLUpdate = createUpdateString(membershipclass); SQLAdapter.updateMembership(SQLSelect, SQLUpdate); }
/// <summary> /// Updates employee membership details depending on percentage. /// </summary> /// <param name="percent">Top percent that needs to be changed</param> /// <param name="membershipclass">Membership category to change them too</param> private static void updateMembership(string percent, string membershipclass) { string SQLSelect = createSelectString(percent); string SQLUpdate = createUpdateString(membershipclass); SQLAdapter.updateMembership(SQLSelect, SQLUpdate); }