문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top