I work on a MVC 5 web application. We have two projects, in one project there is a domain model, and everything else is in the other (service layer, controllers, views, etc).
That worked fine until we made a new WebApi project to expose some functionalities.
Now when we need some services from main project in our WebApi we need to copy paste service from main project to new web api project so we have duplicated code.
What I want to know is, is it a good practice to move whole service layer to the new project(dll) and then include it in main application and web api? Should we do this?
