public string Send([FromBody] EmailDto EmailDto) { var ajas = EmailDto.CorreoVar; string message = ""; try { generals = new Generals(); if (generals.SendEmailToBd(EmailDto) && generals.SendEmailSMTP(EmailDto)) { message = "success"; } else { message = "error"; } } catch (Exception) { return(JsonConvert.SerializeObject(message)); } return(JsonConvert.SerializeObject(message)); }