1
0
mirror of https://github.com/rudollee/LearningMVC.git synced 2026-08-11 16:32:55 +00:00

Ch. 17 Controllers and Actions

This commit is contained in:
wook
2017-04-13 03:19:09 +09:00
parent 59e0ccf99b
commit 950d5f778f
36 changed files with 23852 additions and 1 deletions
@@ -0,0 +1,19 @@
@*@model DateTime*@
@{
ViewBag.Title = "Index";
}
<h2>Index</h2>
@*The day is: @((DateTime)Model).DayOfWeek)*@
@*The day is: @Model.DayOfWeek*@
The day is: @ViewBag.Date.DayOfWeek
<p/>
The message is: @ViewBag.Message
<p/>
just test string is: @ViewBag.TTT
<p/>
The day is: @(((DateTime)TempData["Date"]).DayOfWeek)
<p/>
The message is: @TempData["Message"]