示例#1
0
 public IActionResult GetAllSetting(int pageindex = 1)
 {
     try
     {
         _logger.LogInformation($"get all emailsetting, pageindex={pageindex}");
         var result = _emailProvider.GetAllEmailSetting(pageindex);
         return(new JsonResult(new { result = true, data = new { list = result.list, total = result.total } }));
     }
     catch (Exception exc)
     {
         _logger.LogCritical(exc, exc.Message);
         return(new JsonResult(new { result = false, message = exc.Message }));
     }
 }