/AspNetCoreMvc_2Layout

Simple website project 2 in ASP.NET Core MVC with Layout

Primary LanguageC#MIT LicenseMIT

ASP.NET Core MVC 2 layout

This is a simple website project 2 written in ASP.NET Core MVC technology.

This project ASP.NET demonstrates how to create web pages using the ASP.NET Core MVC. The website is simple, because it has only the necessary files to work.

The project has one controller Home, 3 view pages .cshtml, and css page style. So that the html pages have a similar layout, added _Layout.cshtml page. This file defines the backbone of all pages.

The project has no data base engine or model class. But it works corectly.

Details

  • Environment: VS2019
  • Target: .NET5 (Core)
  • Output type: Web Application
  • ASP.NET Core MVC

About ASP.NET Core MVC

ASP.NET Core MVC is a rich framework for building web apps and APIs using the Model-View-Controller design pattern.

The Model-View-Controller (MVC) architectural pattern separates an application into three main groups of components: Models, Views, and Controllers. This pattern helps to achieve separation of concerns. Using this pattern, 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.

Above shows the diagram the three main components and which ones reference the others.