+ @Html.ActionLink("Edit", "Edit", new { id=Model.Id }) | + @Html.ActionLink("Back to List", "Index") +
diff --git a/CodeTalk/Views/Comment/Edit.cshtml b/CodeTalk/Views/Comment/Edit.cshtml new file mode 100644 index 0000000..1aa4a0b --- /dev/null +++ b/CodeTalk/Views/Comment/Edit.cshtml @@ -0,0 +1,70 @@ +@model CodeTalk.Domain.Models.Comment + +@{ + ViewBag.Title = "Edit"; +} + ++ @Html.ActionLink("Create New", "Insert", new {id = 0}) +
+| + @Html.DisplayNameFor(model => model.Body) + | ++ @Html.DisplayNameFor(model => model.CommenterName) + | ++ @Html.DisplayNameFor(model => model.TalkId) + | ++ @Html.DisplayNameFor(model => model.DateCreated) + | ++ @Html.DisplayNameFor(model => model.DateModified) + | ++ |
|---|---|---|---|---|---|
| + @Html.DisplayFor(modelItem => item.Body) + | ++ @Html.DisplayFor(modelItem => item.CommenterName) + | ++ @Html.DisplayFor(modelItem => item.TalkId) + | ++ @Html.DisplayFor(modelItem => item.DateCreated) + | ++ @Html.DisplayFor(modelItem => item.DateModified) + | ++ @Html.ActionLink("Edit", "Edit", new { id=item.Id }) | + @Html.ActionLink("Details", "Details", new { id=item.Id }) | + @Html.ActionLink("Delete", "Delete", new { id=item.Id }) + | +
- To learn more about ASP.NET MVC visit - http://asp.net/mvc. - The page features videos, tutorials, and samples to help you get the most from ASP.NET MVC. - If you have any questions about ASP.NET MVC visit - our forums. -
+@talk.Title
*@ + + +@comment.Body
+@Html.ActionLink("Add Comment", "AddComment", "Home", new {id = talk.Id }, null)
+@Html.ActionLink("Submit Talk", "SubmitTalk")
@Html.ActionLink("your logo here", "Index", "Home")
+@Html.ActionLink("Code Talk Demo", "Index", "Home")
+ @Html.ActionLink("Edit", "Edit", new { id=Model.Id }) | + @Html.ActionLink("Back to List", "Index") +
diff --git a/CodeTalk/Views/Talk/Edit.cshtml b/CodeTalk/Views/Talk/Edit.cshtml new file mode 100644 index 0000000..833f32d --- /dev/null +++ b/CodeTalk/Views/Talk/Edit.cshtml @@ -0,0 +1,60 @@ +@model CodeTalk.Domain.Models.Talk + +@{ + ViewBag.Title = "Edit"; +} + +
diff --git a/CodeTalk/Web.config b/CodeTalk/Web.config
index 8c30cbc..179c6ce 100644
--- a/CodeTalk/Web.config
+++ b/CodeTalk/Web.config
@@ -9,7 +9,11 @@