Exemplo n.º 1
0
        public void AddDeposit(CreatedDepositDTO newDeposit)
        {
            logger.LogInformation($"Call AddDeposit");

            validateService.ValidateAddDeposit(newDeposit);

            var deposit = new Deposit
            {
                Id           = GetIDForNewDeposit(),
                Name         = newDeposit.Name,
                InterestRate = newDeposit.InterestRate,
            };

            depositsRepository.AddDeposit(deposit);
        }