Relative Content

Tag Archive for cqrs

Is it necessary anymore to extract logic from API controllers?

I’ve been working in MVC web frameworks since its they started getting popular with RoR and ASP.NET MVC. I have always been careful to never put “business logic” on my controllers since that couples the framework with the logic. These days, like many of you, I’m not really using the MVC part of my framework, since I’m not returning “views” and framework artifacts. Instead, I’m just using routes to controller actions to build API’s that return xml or json.

Is it necessary anymore to extract logic from API controllers?

I’ve been working in MVC web frameworks since its they started getting popular with RoR and ASP.NET MVC. I have always been careful to never put “business logic” on my controllers since that couples the framework with the logic. These days, like many of you, I’m not really using the MVC part of my framework, since I’m not returning “views” and framework artifacts. Instead, I’m just using routes to controller actions to build API’s that return xml or json.