Rajesh G

Rajesh G

  • NA
  • 36
  • 1.3k

Consume Rest API in Asp.net webforms project

Mar 23 2020 6:05 PM
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. 

Answers (4)