Fix validation for Terms of Service

This commit is contained in:
2017-01-13 10:23:27 -05:00
parent 3ee9c11666
commit aeaf5002e9
9 changed files with 29 additions and 37 deletions
+1 -4
View File
@@ -27,9 +27,6 @@ namespace LeafWeb.WebCms.Controllers
[HttpPost]
public ActionResult Submit(LeafInputCreate viewModel)
{
if (!ModelState.IsValid)
return CurrentUmbracoPage();
// directory name is the sessionID
var files = GetBackloadDirectoryFiles(Session.SessionID);
@@ -67,7 +64,7 @@ namespace LeafWeb.WebCms.Controllers
}
HydrateCreateViewModel(viewModel);
return CurrentUmbracoPage();
return CurrentUmbracoPage();
}
private void HydrateCreateViewModel(dynamic viewModel)