Пример #1
0
 public IActionResult AddFileSetting([FromBody] FileSetting FileSetting)
 {
     try
     {
         _logger.LogInformation($"add Filesetting,keyname={FileSetting.KeyName}");
         return(new JsonResult(new { result = true, data = _fileProvider.AddFileSetting(FileSetting) }));
     }
     catch (Exception exc)
     {
         _logger.LogCritical(exc, exc.Message);
         return(new JsonResult(new { result = false, message = exc.Message }));
     }
 }