Exemple #1
0
        public void Pay(AccountDetailModel account)
        {
            AccountModel accountModel = _accountBll.GetAccountInfo(account.Aid);

            account.OldAmount    = accountModel.Amount;
            accountModel.Amount  = accountModel.Amount - account.Amount;
            account.NewAmount    = accountModel.Amount;
            account.BusinessType = "P";
            account.Amount       = account.Amount * -1;
            _accountBll.UpdateAccount(accountModel);
            _accountDetailBll.AddAccountDetail(account);
        }