private void Credit(AtmWithdraw atmWithdraw, Movement movement) { MovementHelpers.Credit(HistoricMovementRepository, movement.Amount, atmWithdraw.Id, ObjectType.AtmWithdraw, atmWithdraw.CurrentAmount); atmWithdraw.CurrentAmount += movement.Amount; AtmWithdrawRepository.Update(atmWithdraw); }
public void ChangeDebitStatus(int id, bool debitStatus) { AtmWithdraw atmWithdraw = _atmWithdrawRepository.GetById(id); atmWithdraw.HasBeenAlreadyDebited = debitStatus; _atmWithdrawRepository.Update(atmWithdraw); }