Pergunta

The question is quite straightforward.

In my MVC3 application I have an architecture with Repository and Service layers, with the Repository exposing its methods to the Service layer and the Service layer exposing its methods to the Controller.

The Service layer is a class called MyServices that implements a IMyServices interface.

In a typical Visual Studio MVC3 folder organization where would you place MyServices and IMyServices?

Foi útil?

Solução

There's no rule for that. A Services folder seems logical. Or if you are writing a reusable service layer you might put that into a separate class library which you would reference in your ASP.NET MVC application.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top