public static void AddServiceCharges(int memberId, ServiceCharge charge) { if (!serviceCharges.ContainsKey(memberId)) { serviceCharges[memberId] = new List <ServiceCharge>(); } serviceCharges[memberId].Add(charge); }
public void AddServiceCharge(int memberId, ServiceCharge serviceCharge) { PayrollDatabase.AddServiceCharges(memberId, serviceCharge); }