public async Task <EmailModel[]> GetSentEmails( [FromRoute] string to, [FromQuery] string campaignId) { return((await _emailService.GetSentEmailsAsync(to, campaignId)) .Select(email => EmailModel.Create(email)) .ToArray()); }