Search code examples
c#asp.netn-tier-architecture3-tier

generating a web link in a 3 tier-architecture, from the logic layer (C#)


I have a 3-tier architecture system (Data, Logic, Presentation). The Presentation layer is an ASP.Net website.

I would like to send out emails from time to time. My assumption is that such logic for sending emails should be placed in the logic-layer. However, such emails need to have a link to the path of the web-layer. An example from the top of my head is when an order is generated, the email sent needs to have a link where the user can click to pay online.

Considering this page is implemented in the Presentation layer, there is no direct link between the Logic and Presentation layer. How would one go about this, and maybe any best practices regarding this seperation of layers?


Solution

  • It should be in logic layer, there is no harm to have links in the email.

    Emails often contains link, and what if the links are hosted on the same domain.