asp.net stuff
Northeastern University, ITC 2811 – Advanced Application Development Assignment 9
Page 1 of 1
Assignment 9
For this assignment, you are going to create an MVC Project called Assignment9 as follows:
It should have a Home controller with the following two actions:
Index, which has a return type of ActionResult and no parameters. In its body, it should
add the current year to the ViewBag property under the name CurrentYear.
o Its associated view should then display the following text:
The current year is: X
Where X is the CurrentYear value retrieved from the ViewBag property.
AgeCalculator, which has a return type of ActionResult and an integer parameter called
BirthYear. In its body, it should subtract BirthYear from the current year and assign the
result to ViewBag property under the name Age.
o Its associated view should then display the following text:
You are X years old!
Where X is the Age value retrieved from the ViewBag property.
What to Submit
To submit this assignment, you may zip up the solution folder(s) and submit them to me via the
Blackboard.
Good luck and don’t hesitate to contact me if you have any question