Click here to Skip to main content
15,893,904 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
Hi , I am working on refactoring of a project. It is MVC project. Buisness logic is
scattered in 3 places -> Controllers, Decorator Classes and buisness operation classes.
Now I want to clean the controllers and write all the logic in single buisness operation class.
there I am facing problem, As I want to use controller only to give call to buisness operation methods
how should I write RedirectToAction or Return JsonResult in buisness operation class , as they can only be used in controlllers.
Posted
Comments
Black Mamba Elapidae 4-Sep-15 6:20am    
Please help :(

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900