Thanks for your reply.
Since stackoverflow did not recognize my Gooogle OpenID, so I create a new account and come back again :)
I cannot use override because I use T4MVC .
So, I will fix it like this:
base controller (replace "public" with "protected"):
protected virtual ActionResult Index() { return View("Index", SelectAll()); }
contact controller:
public virtual new ActionResult Index() { return base.Index(); }
In the automatically generated T4MVC code, you can override it:
public override System.Web.Mvc.ActionResult Index() { var callInfo = new T4MVC_ActionResult(Area, Name, Actions.Index); return callInfo; }
Everything seems to be working fine now. :)
user234489
source share