コード例 #1
0
        public HttpResponseMessage SendEmail(ContactDataViewModel contactData)
        {
            SendEmailRequest request = new SendEmailRequest()
            {
                Contacts          = contactData.Contacts,
                FormSubmissionIds = contactData.FormSubmissionIds,
                EmailBody         = contactData.EmailBody,
                AccountId         = this.AccountId,
                RequestedBy       = this.UserId
            };
            SendEmailResponse response = enterpriseService.SendEmail(request);

            return(Request.BuildResponse(response));
        }