Saturday, March 1, 2014

HomeController inherit from BaseController, but didn't run a function in BaseController

I try make internationalization using this tutorial, the problem is that the basecontroller is not execute.

public class BaseController : Controller
    {
        protected override void ExecuteCore()
        {
           ........
            base.ExecuteCore();
        }

    }

 public class HomeController : BaseController
    {
        public ActionResult Index()
        {
           ...
            return View();
        }
}

1 comment:

  1. I can use BeginExecuteCore
    protected override IAsyncResult BeginExecuteCore(AsyncCallback callback, object state)
    {
    return base.BeginExecuteCore(callback, state);
    }

    ReplyDelete