I am using the MVC pattern in ASP.NET, using service levels (BLL) and repository for data management. In some cases, I want to send an automatic email when a new request is sent through our website. In which layer of architecture should this email be sent? In the controller layer or service level? I was thinking about the level of service, since this is where the "business logic" should go, but I'm 100% not sure if this is semantically correct.
Edit: When I say βnew queryβ, I mean that the user takes an action that is stored in some kind of data store. As an example, they create a new βProjectβ on a website. Thus, the request will go through the levels of the controller> services> repository.
John b
source share