Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion TakeHome/Models/FeedbackForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public String LastName
get;
set;
}
[Required(AllowEmptyStrings = false, ErrorMessage = "Please Provide Eamil")]
[Required(AllowEmptyStrings = false, ErrorMessage = "Please Provide Email")] /* AJH - corrected spelling error */
[RegularExpression("^[a-zA-Z0-9_\\.-]+@([a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,6}$", ErrorMessage = "Please Provide Valid Email")]
[StringLength(200, MinimumLength = 0, ErrorMessage = "First Name Should be min 1 and max 25 length")]
public String Email
Expand Down
3 changes: 2 additions & 1 deletion TakeHome/Views/Feedback/ThankYou.cshtml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@model object
<!-- AJH - missing the feedbackform model -->
@model TakeHome.Models.FeedbackForm

@{
ViewBag.Title = "ThankYou";
Expand Down
3 changes: 2 additions & 1 deletion TakeHome/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
<ul class="nav navbar-nav">
<li>@Html.ActionLink("Home", "Index", "Home")</li>
<li>@Html.ActionLink("About", "About", "Home")</li>
<li>@Html.ActionLink("Feedback", "Index", "Feedback")</li>
<li>@Html.ActionLink("Feedback", "Feedback", "Feedback")</li> <!-- AJH - incorrect controllerName -->
<li>@Html.ActionLink("Contact", "Contact", "Home")</li> <!-- AJH - Link missing from navbar -->
</ul>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion TakeHome/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
<system.web>
<compilation debug="true" targetFramework="4.7"/>
<httpRuntime targetFramework="4.7"/>
<customErrors defaultRedirect="Error" mode="Off" redirectMode="ResponseRewrite">
<!-- AJH - enabling customErrors -->
<customErrors defaultRedirect="Error" mode="On" redirectMode="ResponseRewrite">
</customErrors>
</system.web>
<system.webServer>
Expand Down