public static void Credit(PersonDto pPerson, CustomerAcctPaymentDto pCustomerAcctPayment) { using (var _db = new Rbr_Db()) { using (var _tx = new Transaction(_db, pPerson, pCustomerAcctPayment)) { pCustomerAcctPayment.DateTime = DateTime.Now; //NOTE: make sure we got prev amnt CustomerAcctRow _customerAcctRow = CustomerAcctManager.Get(_db, pCustomerAcctPayment.CustomerAcctId); pCustomerAcctPayment.PreviousAmount = _customerAcctRow.Current_amount; pCustomerAcctPayment.Person = pPerson; CustomerAcctManager.Credit(_db, pCustomerAcctPayment); _tx.Commit(); PartnerDto _partner = PartnerManager.Get(_db, _customerAcctRow.Partner_id); ContactInfoDto _contactInfo = ContactInfoManager.Get(_db, _partner.ContactInfo.ContactInfoId); sendNotification(pPerson, pCustomerAcctPayment, _customerAcctRow, _partner, _contactInfo); } } }