示例#1
0
        public override void OnActionExecuted(ActionExecutedContext filterContext)
        {
            //********************************?????????????************************///
            //NOTE:PUT ERROR LOGGING CODE HERE
            if (filterContext.Exception != null)
            {
                MVC4Template.Models.ErrorModel err = new MVC4Template.Models.ErrorModel();
                err.InsertError(filterContext.Exception);

                filterContext.HttpContext.Trace.Write("(Logging Filter)Exception thrown");
            }

            //****************************????********************///
            //NOTE: PUT USER TRACKING CODE HERE

            base.OnActionExecuted(filterContext);
        }
示例#2
0
        public override void OnActionExecuted(ActionExecutedContext filterContext)
        {
            //********************************?????????????************************///
            //NOTE:PUT ERROR LOGGING CODE HERE
            if (filterContext.Exception != null)
            {
                MVC4Template.Models.ErrorModel err = new MVC4Template.Models.ErrorModel();
                err.InsertError(filterContext.Exception);

                filterContext.HttpContext.Trace.Write("(Logging Filter)Exception thrown");
            }

            //****************************????********************///
            //NOTE: PUT USER TRACKING CODE HERE

            base.OnActionExecuted(filterContext);
        }