From the course: Azure Microservices with .NET Core for Developers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Creating the products provider

Creating the products provider - Azure Tutorial

From the course: Azure Microservices with .NET Core for Developers

Start my 1-month free trial

Creating the products provider

- [Instructor] Now that our project is set up, we're ready to implement the IProductsProvider interface, but before that, we're going to add a new folder for our models, so, this new folder, Models, will have a new class named Product. Be careful that this is different than the other one that we created before, even if they have the same properties. This one is going to be the one that we're going to return from the provider, and this one is the one that we use for database access. This is important because you can have different things and different meanings in each one. We have this model right now. Let's go ahead and add another folder, named Interfaces, where we're going to add a new interface named IProductsProvider. This interface will have all the different methods that we're going to invoke from the controller. The first method that we're going to implement is the one that returns all the products. Let's do this as…

Contents