Programming with mosh example files8/28/2023 ![]() In ASP.NET MVC, we refer to methods of a controller as Actions. Actually, it is handled by one of the Methods of the class MoviesController. ![]() For example, it may select the class called MoviesController. The Router takes the URL request, uses some rules, and then finds the correct Controller. In this process, selecting the right controller is the responsibility of the Router. The controller will get the Movies from the Movies table in the database (Model) and then put them in a View and return the View to the client or the browser. When a user goes to see our movies and requests the Controller will be selected to handle this request. Suppose we are hosting this at the website. There is one more component to the architecture that is not in the MVC acronym: Router. ![]() When we develop our application, we will be using the MVC architecture. We can use these basic concepts to build our own application.įor the admin login, there are three links on the menu bar at the top of the interface. You can log in as the administrator or as an employee of the video rental store. You can search for customer accounts with a search box and then add movies to their rental. There is also the ability for customers to rent movies. The example application is a video rental store.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |