Пример #1
0
 // POST api/<controller>
 public void Post([FromBody] EmailMessageDto emailMessageDto)
 {
     Services.SendUsingGMAIL normalEmail = new Services.SendUsingGMAIL();
     normalEmail.SendMail(emailMessageDto.Application, "Normal", emailMessageDto.HtmlBody);
 }
 // POST api/<controller>
 public void Post([FromBody] EmailMessageDto emailMessageDto)
 {
     Services.SendUsingGMAIL errorEmail = new Services.SendUsingGMAIL();
     errorEmail.SendMail(emailMessageDto.Application, "High", emailMessageDto.HtmlBody);
 }