posted 10 years ago
Hi Friends,
I have the below requirement..
On each controller, immediately after the POST method is initiated I need to take the two attributes from the model and pass it to business layer.
I disregarded the following approaches
1. Either calling the business service in each controller or writing a utility class and auto wire it to controller and calling the method these process may reduce the repetitive code, but it is not effective.
2. Interceptors, are not helpful, because, I need to inject the model attributes immediately after POST method started executed.
Is there any best way to do this, without repetitive code
Thanks in advance,
Thanks,
Suresh.