Member-only story

JIN
11 min readJul 18, 2021

--

About the Web API, C# Learn steps by steps

The documentation you must read through

https://dotnet.microsoft.com/apps/aspnet/mvc

Let us explain what is MVC (Model, View, and Controller)

https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/start-mvc?view=aspnetcore-5.0&tabs=visual-studio

  • ASP.Net Core MVC is a rich framework for building web apps and APIs using this framework.
  • This pattern helps to achieve separation of concerns. With this framework, user requests are routed to a controller which is responsible for working with the model to perform user actions and/ or retrieve results of queries. The controller chooses the view to display to the user and provides it with any Model data it requires.
  • User interface logic tends to change more frequently than business logic.
  • The model represents the business logic or any operation that should be performed.
  • Views represent the content through the user interface. They use the Razor view engine to embed .NET code in HTML markup. There should be minimal logic within views.
  • Controller represents the components that handle user interaction, work with the model, and ultimately select a view to render. (Handling and responding to user input and interaction)

--

--

No responses yet