- Review MVC
- action results
- vanity urls
routes.MapRoute(
name: "AllSchools",
url: "GetAllSchools/{currentPage}",
defaults: new { controller = "School", action = "ShowAll", numberPerPage=5, currentPage = 1 }
);
#Homework
- Fork and Clone this repo, submit the homework by doing a pull request (PR)
- Grab the file users.txt in this repo and place it in a folder in your application called "files". The format of users.txt is firstname space lastname space emailaddress
- Display the content of users.txt as an html table. (i.e open and parse the file in a model of People)
- Provide a link to download the parsed list of users as an actual csv file (header, rows, and using commas)
- Create a vanity url "localhost/UserCSV" for this link.
Restrict access using the Authorize() attribute when downloading the csv Create a login page where I can type "admin"/"secret1234" as my username/password to get access.
Create a login system (hard code passwords)