Loading…
Transcript

MVC .NET

MVC Pattern

MVC Pattern

History

Three main parts

Originally it was named Thing-Model-View-Editor in 1979, and then it was later simplified to Model- View-Controller.

By the time ASP.NET MVC was announced in 2007, the MVC pattern was becoming one of the most popular ways of building web frameworks.

The Model − A set of classes that describes the data you are working with as well as the business logic.

The View − Defines how the application’s UI will be displayed. It is a pure HTML, which decides how the UI is going to look like.

The Controller − A set of classes that handles communication from the user, overall application flow, and application-specific logic.

MVC Pipeline

Lesson Plan

Lesson Plan

Routing

2

Create and review mvc app

1

4

razor, view, partial view, sections, helper

Play with action return value

3

Additional reading

Repository pattern, implementing business layer

Next Steps

http://rsdn.org/article/patterns/generic-mvc.xml#ERG

https://habr.com/ru/post/181772/

https://www.tutorialspoint.com/asp.net_mvc/index.htm

https://docs.microsoft.com/en-us/aspnet/mvc/

Web Api

More practice

Clone mvc app repositories

Develop education project

Work with tutorials

Read documentations

Repository pattern