示例#1
0
 public IActionResult ModifyEmailSetting([FromBody] EmailSetting emailSetting)
 {
     try
     {
         _logger.LogInformation($"modify emailsetting,keyname={emailSetting.KeyName}");
         return(new JsonResult(new { result = true, data = _emailProvider.ModifyEmailSetting(emailSetting) }));
     }
     catch (Exception exc)
     {
         _logger.LogCritical(exc, exc.Message);
         return(new JsonResult(new { result = false, message = exc.Message }));
     }
 }