public IActionResult Get() { var helper = new MongoDbHelper("EdayingDB", false, true); var result = userService.Find(2); #region Exceptionless测试 loggerHelper.Debug("Salary", JsonConvert.SerializeObject(result.Data)); loggerHelper.Error("Salary", JsonConvert.SerializeObject(result.Data)); loggerHelper.Info("Salary", JsonConvert.SerializeObject(result.Data)); loggerHelper.Trace("Salary", JsonConvert.SerializeObject(result.Data)); loggerHelper.Warn("Salary", JsonConvert.SerializeObject(result.Data)); #endregion Task.Run(() => helper.Insert("User", result.Data)); return(Json(result)); }