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