From 5bb7c1cfbb3893c9aae3c9e6a3e0e769cfae2b2b Mon Sep 17 00:00:00 2001 From: sjk80 Date: Fri, 10 Feb 2023 13:57:23 -0600 Subject: [PATCH 1/2] Test changes made for test --- TakeHome/Controllers/FeedbackController.cs | 7 ++--- TakeHome/TakeHome.csproj | 7 ++--- TakeHome/Views/Feedback/Feedback.cshtml | 4 +-- TakeHome/Views/Feedback/ThankYou.cshtml | 2 +- TakeHome/Views/Shared/_Layout.cshtml | 4 ++- TakeHome/Web.config | 32 +++++++++++----------- 6 files changed, 27 insertions(+), 29 deletions(-) diff --git a/TakeHome/Controllers/FeedbackController.cs b/TakeHome/Controllers/FeedbackController.cs index f11973a..2755eb5 100644 --- a/TakeHome/Controllers/FeedbackController.cs +++ b/TakeHome/Controllers/FeedbackController.cs @@ -11,7 +11,7 @@ public class FeedbackController : Controller { // GET: Feedback - public ActionResult Index() + public ActionResult Index("Feedback) { return View(); } @@ -23,9 +23,8 @@ public ActionResult Feedback(FeedbackForm form) { return View("ThankYou", form); } - else - ViewBag.Result = "Invalid Entries, Kindly Recheck."; - return View(); + + return View(Error); } } diff --git a/TakeHome/TakeHome.csproj b/TakeHome/TakeHome.csproj index 3de13b1..5545e31 100644 --- a/TakeHome/TakeHome.csproj +++ b/TakeHome/TakeHome.csproj @@ -14,7 +14,7 @@ Properties TakeHome TakeHome - v4.7 + v4.8 false true @@ -25,6 +25,7 @@ + true @@ -53,11 +54,7 @@ - - - - diff --git a/TakeHome/Views/Feedback/Feedback.cshtml b/TakeHome/Views/Feedback/Feedback.cshtml index 6e2d0ec..196e746 100644 --- a/TakeHome/Views/Feedback/Feedback.cshtml +++ b/TakeHome/Views/Feedback/Feedback.cshtml @@ -1,4 +1,4 @@ -@model TakeHome.Models.FeedbackForm +@model TakeHome.Models.FeedbackForms @{ ViewBag.Title = "Feedback"; } @@ -7,7 +7,7 @@
@*@using (Html.BeginForm("Submit", "Feedback"))*@ - @using (Html.BeginForm()) + @using (Html.BeginForm("Feedback", "Feedback")) { /* form here */
diff --git a/TakeHome/Views/Feedback/ThankYou.cshtml b/TakeHome/Views/Feedback/ThankYou.cshtml index fd9b932..d01cbf7 100644 --- a/TakeHome/Views/Feedback/ThankYou.cshtml +++ b/TakeHome/Views/Feedback/ThankYou.cshtml @@ -1,4 +1,4 @@ -@model object +@model TakeHome.Models.FeedbackForm @{ ViewBag.Title = "ThankYou"; diff --git a/TakeHome/Views/Shared/_Layout.cshtml b/TakeHome/Views/Shared/_Layout.cshtml index 188c393..318578d 100644 --- a/TakeHome/Views/Shared/_Layout.cshtml +++ b/TakeHome/Views/Shared/_Layout.cshtml @@ -22,7 +22,9 @@
diff --git a/TakeHome/Web.config b/TakeHome/Web.config index 30e3a71..1bfe2b6 100644 --- a/TakeHome/Web.config +++ b/TakeHome/Web.config @@ -1,4 +1,4 @@ - + - + - - + - + - + @@ -69,12 +73,8 @@ - - + + - + \ No newline at end of file From d5ed37f63f40a199dc8f6c545948ccab54d7e07f Mon Sep 17 00:00:00 2001 From: sjk80 Date: Tue, 14 Feb 2023 12:22:15 -0600 Subject: [PATCH 2/2] Update Feedback.cshtml this is the take home test for seth kendall --- TakeHome/Views/Feedback/Feedback.cshtml | 70 ++++++++++++------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/TakeHome/Views/Feedback/Feedback.cshtml b/TakeHome/Views/Feedback/Feedback.cshtml index 196e746..f4e912b 100644 --- a/TakeHome/Views/Feedback/Feedback.cshtml +++ b/TakeHome/Views/Feedback/Feedback.cshtml @@ -1,6 +1,6 @@ -@model TakeHome.Models.FeedbackForms +@model TakeHome.Models.FeedbackForm @{ - ViewBag.Title = "Feedback"; + ViewBag.Title = "Feedback"; }

@ViewBag.Title.

@ViewBag.Message

@@ -10,41 +10,41 @@ @using (Html.BeginForm("Feedback", "Feedback")) { /* form here */ -
-
- @Html.LabelFor(m => m.FirstName) -
-
- @Html.EditorFor(m => m.FirstName) - @Html.ValidationMessageFor(m => m.FirstName) -
+
+
+ @Html.LabelFor(m => m.FirstName) +
+
+ @Html.EditorFor(m => m.FirstName) + @Html.ValidationMessageFor(m => m.FirstName) +
-
- @Html.LabelFor(m => m.LastName) -
-
- @Html.EditorFor(m => m.LastName) - @Html.ValidationMessageFor(m => m.LastName) -
+
+ @Html.LabelFor(m => m.LastName) +
+
+ @Html.EditorFor(m => m.LastName) + @Html.ValidationMessageFor(m => m.LastName) +
-
- @Html.LabelFor(m => m.Email) -
-
- @Html.EditorFor(m => m.Email) - @Html.ValidationMessageFor(m => m.Email) -
+
+ @Html.LabelFor(m => m.Email) +
+
+ @Html.EditorFor(m => m.Email) + @Html.ValidationMessageFor(m => m.Email) +
-
- @Html.LabelFor(m => m.Comments) -
-
- @Html.EditorFor(m => m.Comments) - @Html.ValidationMessageFor(m => m.Comments) -
-
- -
-
+
+ @Html.LabelFor(m => m.Comments) +
+
+ @Html.EditorFor(m => m.Comments) + @Html.ValidationMessageFor(m => m.Comments) +
+
+ +
+
} \ No newline at end of file