Esempio n. 1
0
        public void SendUpgradePaymentRecieptEmail(Payment newPayment, Payment oldPayment, Department department)
        {
            var user = _usersService.GetUserById(department.ManagingUserId);

            _emailProvider.SendUpgradePaymentReciept(department.Name, newPayment.PurchaseOn.ToShortDateString() + " (UTC)", newPayment.Amount.ToString("C"), user.Email,
                                                     ((PaymentMethods)newPayment.Method).ToString(), newPayment.TransactionId, oldPayment.Plan.Name, newPayment.Plan.Name, string.Format("{0} to {1}", newPayment.EffectiveOn.ToShortDateString(),
                                                                                                                                                                                         newPayment.EndingOn.ToShortDateString()), newPayment.EndingOn.ToShortDateString() + " " + newPayment.EndingOn.ToShortTimeString() + " (UTC)");
        }