c# - Call method every time a controller method is ending -


i have static class called notificationmanager , every time controller method called, want store modelerrors in notificationmanager.

however, inside notificationmanager, can't access modelstate because not inside actual controller.

is there way automatically call method once controller method finished, without having write in every single controller method?

note: need use values in view.

override onactionexecuted in controller. still have viewdata[]

protected override void onactionexecuted(actionexecutedcontext filtercontext) {     //do stuff     base.onactionexecuted(filtercontext); } 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -