Download - Very basic of asp.net mvc with c#
![Page 1: Very basic of asp.net mvc with c#](https://reader034.vdocument.in/reader034/viewer/2022042908/58f0ea0d1a28abc16d8b45e3/html5/thumbnails/1.jpg)
ASP.NET MVC WITH C#
![Page 2: Very basic of asp.net mvc with c#](https://reader034.vdocument.in/reader034/viewer/2022042908/58f0ea0d1a28abc16d8b45e3/html5/thumbnails/2.jpg)
What is MVC?
Architectural Pattern Divide application into three logical part
![Page 3: Very basic of asp.net mvc with c#](https://reader034.vdocument.in/reader034/viewer/2022042908/58f0ea0d1a28abc16d8b45e3/html5/thumbnails/3.jpg)
MVC Stands for
ModelViewController
![Page 4: Very basic of asp.net mvc with c#](https://reader034.vdocument.in/reader034/viewer/2022042908/58f0ea0d1a28abc16d8b45e3/html5/thumbnails/4.jpg)
MVC Architecture
Model• Retrieves and
store data to database
View • User Interface(UI)
Controller
• Handles user interaction
• Works with model
• Select View to render
![Page 5: Very basic of asp.net mvc with c#](https://reader034.vdocument.in/reader034/viewer/2022042908/58f0ea0d1a28abc16d8b45e3/html5/thumbnails/5.jpg)
Controller Classes
Controllers are a special class Interface between model and View Controller Class always will have ‘Controller’ in
the name Controllers contains action methods
![Page 6: Very basic of asp.net mvc with c#](https://reader034.vdocument.in/reader034/viewer/2022042908/58f0ea0d1a28abc16d8b45e3/html5/thumbnails/6.jpg)
Snapshot of controller
Controller
Action Method
![Page 7: Very basic of asp.net mvc with c#](https://reader034.vdocument.in/reader034/viewer/2022042908/58f0ea0d1a28abc16d8b45e3/html5/thumbnails/7.jpg)
Views
Views are simple Html, html helper etc Include CSS, Jquery library Partial Views
![Page 8: Very basic of asp.net mvc with c#](https://reader034.vdocument.in/reader034/viewer/2022042908/58f0ea0d1a28abc16d8b45e3/html5/thumbnails/8.jpg)
Snapshot of View
Html helper with tag @html
![Page 9: Very basic of asp.net mvc with c#](https://reader034.vdocument.in/reader034/viewer/2022042908/58f0ea0d1a28abc16d8b45e3/html5/thumbnails/9.jpg)
Model
Business Logic Database accessing logic etc
![Page 10: Very basic of asp.net mvc with c#](https://reader034.vdocument.in/reader034/viewer/2022042908/58f0ea0d1a28abc16d8b45e3/html5/thumbnails/10.jpg)
Snapshot of Model
![Page 11: Very basic of asp.net mvc with c#](https://reader034.vdocument.in/reader034/viewer/2022042908/58f0ea0d1a28abc16d8b45e3/html5/thumbnails/11.jpg)
Routing
Used to map browser request to controller action
![Page 12: Very basic of asp.net mvc with c#](https://reader034.vdocument.in/reader034/viewer/2022042908/58f0ea0d1a28abc16d8b45e3/html5/thumbnails/12.jpg)
Thank you.