public Payment Create(PaymentDto paymentDto, Account recipient, Account sender, User requestRecipient, User requestSender, User creator, string paymentUrl) { Payment payment = new Payment(paymentDto, recipient, sender, requestRecipient, requestSender, new EntityCreatedDto(creator, DateTime.Now)); PaymentDao.Save(payment); NotificationService.SendPaymentReceivedNotification(payment, paymentUrl); return(payment); }
public void MakePayment(int payment) { var balance = _dao.Retrieve(); _dao.Save(balance + payment); }