예제 #1
0
        public bool Add(Payment payment)
        {
            payment.PaymentID   = Guid.NewGuid();
            payment.PaymentDate = DateTime.Now;

            return(_paymentManagement.Insert(payment) > 0);
        }
예제 #2
0
        public bool Add(Payment payment)
        {
            int result = _paymentManagement.Insert(payment);

            return(result > 0);
        }