From the course: Extend Web Application Functionality on Microsoft Azure

Unlock this course with a free trial

Join today to access over 25,600 courses taught by industry experts.

Exploring and understanding the refactored solution

Exploring and understanding the refactored solution - Azure Tutorial

From the course: Extend Web Application Functionality on Microsoft Azure

Exploring and understanding the refactored solution

- [Instructor] To speed things up, I already refactored the code, so we have two projects. The first one is the web application itself, and the other one is a web API project. So here in this web API, I have a couple of controllers, the PetsController and the BreedsController. So let's go ahead and open the BreedsController so you can see that I have GetAll, and then Get for a single pet, and then Add for creating a pet, and finally for updating a pet. So I'm using the Entity Framework Core code that we had before. And also, I created those model classes so we can return model objects instead of the entities themselves. And speaking of the secrets, let me show you that I'm using the AZURE_SQL_CONNECTIONSTRING item instead of the connection string that we had before. And this is because when this application is running in Azure Container Apps, we're going to create a service connector that uses this value. Okay, so…

Contents