public static void GenerateAndSendData(ViewModel.SenderAndRecieversOnePersonSingleChoice model, string contenttext, BackgroundImageEnum background, Mp3Enum song, FontsEnum font)
 {
     var stringpath = ITextSharpPdfCreator.GeneratefileForCustomers.GeneratePdfFileForCustomer(ReturnPathString.ReturnUniqueFileName(), model.sender.firstname, model.sender.lastname, contenttext, background, song, font);
     //<summary>
     // commented out, to test pdf generation without sending file
     //<summary>
     //SmtpMailService.SendCustomerMail.SendMailToCustomer(model.Recipient1.Email,stringpath);
 }
        public void GenerateAndSendGeneralChoice(ViewModel.SenderAndRecieversOnePersonSingleChoice model, string contenttext, BackgroundImageEnum background, Mp3Enum song, FontsEnum font)
        {
            var item2 = new GenerateAndSendDataSingleDelegate(GeneralFunctions.GeneratePdfAndSendToRecipients.GenerateAndSendData);

            item.SingleGeneralChoiceEvent += item2;
            item.SingleGeneralChoiceEvent(model, contenttext, background, song, font);
            item.SingleGeneralChoiceEvent -= item2;
        }