コード例 #1
0
        public IHttpActionResult AddAccountSYS(LogEntity log)
        {
            bool         isAddSuccess = false;
            ResultEntity result       = new ResultEntity();

            try
            {
                LOG temp = log.ToLOG();
                isAddSuccess = dal.AddLog(temp);
                result.Data  = log;
            }
            catch (Exception e)
            {
                result.Message = e.Message;
                NtripProxyLogger.LogExceptionIntoFile("调用接口api/Log/AddLog异常,异常信息为:" + e.Message);
            }

            result.IsSuccess = isAddSuccess;
            return(Json <ResultEntity>(result));
        }