Esempio n. 1
0
        public JsonResult DeleteDemo(long Id)
        {
            var result = new ResultModel <bool>();

            try
            {
                result = _demoService.DeleteDemo(Id);
            }
            catch (Exception ex)
            {
                result.Code = -1;
                result.Msg  = ex.Message;
            }
            Logger.Info(JsonConvert.SerializeObject(result)); //此处调用日志记录函数记录日志
            return(Json(result));
        }