public static void GenerateAndSendData(ViewModel.SenderAndRecieversTwoPersonsSingleChoice 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); SmtpMailService.SendCustomerMail.SendMailToCustomer(model.Recipient1.Email, stringpath, song); SmtpMailService.SendCustomerMail.SendMailToCustomer(model.Recipient2.Email, stringpath, song); }
public void GenerateAndSendGeneralChoice(ViewModel.SenderAndRecieversTwoPersonsSingleChoice model, string contenttext, BackgroundImageEnum background, Mp3Enum song, FontsEnum font) { var item2 = new GenerateAndSendDataDoubleDelegate(GeneralFunctions.GeneratePdfAndSendToRecipients.GenerateAndSendData); item.DoubleGeneralChoiceEvent += item2; item.DoubleGeneralChoiceEvent(model, contenttext, background, song, font); item.DoubleGeneralChoiceEvent -= item2; }