private void UpdateDeposit() { BranchTransferDetails clsBranchTransferDetails = new BranchTransferDetails(); clsBranchTransferDetails.BranchTransferID = Convert.ToInt64(lblBranchTransferID.Text); clsBranchTransferDetails.Deposit = Convert.ToDecimal(txtBranchTransferDeposit.Text); BranchTransfer clsBranchTransfer = new BranchTransfer(); clsBranchTransfer.UpdateDeposit(clsBranchTransferDetails.BranchTransferID, clsBranchTransferDetails.Deposit); clsBranchTransfer.SynchronizeAmount(Convert.ToInt64(lblBranchTransferID.Text)); clsBranchTransferDetails = clsBranchTransfer.Details(Convert.ToInt64(lblBranchTransferID.Text)); clsBranchTransfer.CommitAndDispose(); UpdateFooter(clsBranchTransferDetails); }