예제 #1
0
        private static void RestorePaymentFromDb(int messageId, HockeyChat chat)
        {
            var payment = _db.GetPaymentByMessageId(messageId);

            if (payment == null)
            {
                return;
            }

            chat.Payments.Add(payment);

            payment.Payers = _db.GetPayersByMessageId(messageId);
            Console.WriteLine("Payment restored from DB: " + payment.Name);
        }