Beispiel #1
0
        public void Post([FromBody] BrandReviewResults value)
        {
            var emailTo = "";

            var subject = value.userDetails.firstName + " " + value.userDetails.lastName +
                          " has submitted his brand review for " + value.userDetails.identifier;
            var body = new StringBuilder();

            body.AppendLine("<b>Who we are:</b> " + string.Join(", ", value.whoWeAre) + "<br/>");
            body.AppendLine("<b>Who we would like to be:</b> " + string.Join(", ", value.weWouldLike) + "<br/>");
            body.AppendLine("<b>Who we don't like to be:</b> " + string.Join(", ", value.weDontWant) + "<br/>");

            var emailSender = new EmailSender();

            emailSender.SendEmail(emailTo, value.userDetails.email, subject, body.ToString());
        }
Beispiel #2
0
 public void Post([FromBody] BrandReviewResults value)
 {
     var test = "test";
 }