public async Task <IActionResult> Send(Newsletter newsletter) { newsletter.SentAt = DateTime.UtcNow; await _newsletterRepository.Create(newsletter); var _ = _newsletterService.SendNewsletter(newsletter, HttpContext.Request.Scheme + "://" + HttpContext.Request.Host, await _newsletterSubscriptionRepository.GetAll().ToListAsync(), await _caseRepository.GetLatest(), await _newsItemRepository.GetLatest(), await _downloadRepository.GetLatest()); return(View()); }