Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

excute same code mvc

Build a base controller

public class BaseController : Controller
{
    protected override void OnActionExecuting(ActionExecutingContext context)
    {
        base.OnActionExecuting(context);
        // your code here
    }
}

public class HomeController : BaseController // instead of Controller
{
    // ...
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #excute #code #mvc
ADD COMMENT
Topic
Name
4+4 =