Angular
Building a CRUD Application with Angular & ASP.Net Core - Creating our .NET Backend

Creating our .NET Backend: Model & Controller

Outline

Creating our .NET Backend: Model & Controller

In this video we created our Camp model and CampsController.

Remember that our model is the data that we want to be able to store. We created the Camp model to hold all the data about Camps that we recently visited.

The CampsController is our intermediate layer that will interact with our stored data. The controller will handle incoming requests for our CRUD operations. We will be making GET, POST, PUT, & DELETE calls from our frontend that will get handled by our controller.

Using the entity framework tools provided in Visual Studio we generated our controller based on the model we created.

When you generate your own model & controller. Give your model a variety of data types, this will help you learn more as we connect our front and back end.

 

I finished! On to the next chapter