Hello,
I have a Asp.net webforms project and I have to consume an external REST API to send our data.
I have two layers in my project, Presentation layer and service layer (like DAL - it has all my WCF services).
Currently, there is a existing screen with save method which saves data to the application database. If the transaction is successful, then I have to post the same data to External API.
So the question are
1. In which layer(Presentation or Service) I need to implement the WEB API call?
2. Should I create any Web API controller to consume the Rest API.
Thanks.

Viswanatha SwamyRank #43 · 33.4K reputationPosted Mar 23, 2020, 7:38 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Mar 23, 2020, 8:19 PM EDT
Rajesh G28 reputationPosted Mar 24, 2020, 10:56 AM EDT
Viswanatha SwamyRank #43 · 33.4K reputationPosted Mar 24, 2020, 8:01 PM EDT