Exemplo n.º 1
0
 public IActionResult AddEmailSetting([FromBody] EmailSetting emailSetting)
 {
     try
     {
         _logger.LogInformation($"add emailsetting,keyname={emailSetting.KeyName}");
         return(new JsonResult(new { result = true, data = _emailProvider.AddEmailSetting(emailSetting) }));
     }
     catch (Exception exc)
     {
         _logger.LogCritical(exc, exc.Message);
         return(new JsonResult(new { result = false, message = exc.Message }));
     }
 }