Esempio n. 1
0
        public virtual void Process()
        {
            var ctl = CreateControllerInstance();

            try
            {
                var ret = InvokeAction(ctl);
                if (ret is IView)
                {
                    ((IView)ret).Render();
                }
                else if (ret == null || (string)ret == "")
                {
                    var view = new PageView(Action.ViewName, ctl, Controller);
                    view.Render();
                }
                else
                {
                    HttpContextHandler.Instance.Redirect((string)ret, false);
                }
            }
            catch (ThreadAbortException)
            {
                throw;
            }
            catch (Exception ex)
            {
                OnException(ex, ctl);
            }
        }