protected void Application_Start() { RoleRepository repo = new RoleRepository(); repo.InitRole(); ControllerActionRepository actionAuthorizationRepo = new ControllerActionRepository(); actionAuthorizationRepo.UpdateActionList(); AreaRegistration.RegisterAllAreas(); RegisterRoutes(RouteTable.Routes); }
public ActionResult UpdateControllerAction() { RoleRepository repo = new RoleRepository(); repo.InitRole(); ControllerActionRepository actionAuthorizationRepo = new ControllerActionRepository(); actionAuthorizationRepo.UpdateActionList(); return RedirectToAction("Index", "Home"); }