Add model
Add view of PostRental to show post rental use the PosRental model
Add rentals controller
show Post view
Change to run with local IIS, and run.
Add HttpPost to process Post
Use Resharper to create rental
constructor
Add new context to process data insert
Need to get rentals from database by adding routine below and use it in post action
insert a rental and re-direct to index
default index to show all rentals
Create a view to show all rentals
Change default route to “Rentals”
Run the project and post
List the rental as default index page. END of Insert
No comments:
Post a Comment