public async Task <IActionResult> SendMailToSomeOneAsync(SendMailViewModel sendMailViewModel)
        {
            // Was steht im Betreff?
            String subject = "Mitgliederliste";

            // Was soll gesendet werden?
            DateTime today   = DateTime.Today;
            String   content = "Auszug aus der Mitgliederliste vom " + today;

            // An wen soll gesendet werden?
            var destinationAddress = sendMailViewModel.DestinationAddress;
            var destinationName    = sendMailViewModel.DestinationName;

            var members = await _parteiDbContext.Members.ToListAsync();

            var model = ModelCreators.CreateMemberListPDFModel(members);

            var postResult = await RequestHelper.SendPDFRequestAsync(RequestHelper.EndPoint.CreateMemberListPDF, model);

            if (postResult.StatusCode == HttpStatusCode.OK)
            {
                var mailPdfContent = await RequestHelper.GetPDFContentAsync(postResult);

                MailManager mailManager = new MailManager();
                await mailManager.SendEmail(subject, content, destinationAddress, destinationName, mailPdfContent, "Mitgliederliste.pdf");

                return(RedirectToAction("Index"));
            }
            else
            {
                return(BadRequest(postResult.Content));
            }
        }
        public async Task <IActionResult> PdfExport()
        {
            var members = await _parteiDbContext.Members.ToListAsync();

            var model = ModelCreators.CreateMemberListPDFModel(members);

            var postResult = await RequestHelper.SendPDFRequestAsync(RequestHelper.EndPoint.CreateMemberListPDF, model);

            if (postResult.StatusCode == HttpStatusCode.OK)
            {
                var content = await RequestHelper.GetPDFContentAsync(postResult);

                return(File(content, "application/pdf", "Mitgliederliste.pdf"));
            }
            else
            {
                return(BadRequest(postResult.Content));
            }
        }