ASP Module 2
Getting Started with MVC
Getting Started with MVC
  • Overview
    • Introduction to MVC
  • Understanding MVC
    • Creating an MVC app
    • Add a controller
      • Understand HTTP endpoint
      • Understand basic routing
    • Add a view
      • Understanding shared layouts
      • Setting view title
      • Passing data to view
  • Exercise
    • Add two numbers
      • Using Model
  • Display Movies
    • Add a model
      • Scaffold the index view
      • Scaffold the movies controller
      • Add temp movie data
      • Pass data to index view
    • Implement actions
      • The first create action
      • The second create action
      • The details action method
      • Edit & Delete actions
      • Asynchronous actions
    • Repo link
Powered by GitBook
On this page
  1. Display Movies

Implement actions

Let us work on the other http action methods

In the previous section we

  • Created basic MVC app with HelloWorldController to understand outright basics

  • Added a Movie model

  • Added a fake context (collection) for holding a few movies in a list

  • Scaffolded the index view for Movie model

  • Scaffolded minimal Controller with boiler plate code

  • Implemented the Index action method of the controller to return movie list from fake context

Let us now work on implementing and understanding other action methods and view required to maintain a list of movies.

PreviousPass data to index viewNextThe first create action

Last updated 2 years ago