aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/add-feature-template.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/add-feature-template.sh b/tools/add-feature-template.sh
index 73fe696..3b11a44 100755
--- a/tools/add-feature-template.sh
+++ b/tools/add-feature-template.sh
@@ -399,7 +399,7 @@ namespace $project_name.Web.Controllers
public async Task<IActionResult> Create(Create${feature_name}WebModel webModel)
{
if (!ModelState.IsValid)
- return View(editUserViewModel);
+ return View(webModel);
${feature_name}ServiceModel serviceModel = this._autoMapper.Map<${feature_name}ServiceModel>(webModel);