Exemplo n.º 1
0
        public void ResendConfirmationEmail(int giftPurhcaseId)
        {
            _loggingService.LogInformation(string.Format("Resending confirmation email for gift purchase {0}", giftPurhcaseId));

            GiftPruchase giftPurchase = _giftRepository.GetGiftPurchase(giftPurhcaseId);
            Gift         gift         = _giftRepository.GetGift(giftPurchase.GiftId);
            Guest        guest        = _userRepository.GetGuestById(giftPurchase.GuestId);

            _mailService.SendPurchaseConfirmationEmail(guest, giftPurchase, gift);
        }