aboutsummaryrefslogtreecommitdiff
path: root/tools/add-feature-template.sh
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-05-12 14:01:43 +0300
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-05-12 14:01:43 +0300
commitd42dbc0d55a825ccf8b6d404c542df3da99c7d57 (patch)
tree76ce9604b2500340fb8222a8edca0a1375c3db1d /tools/add-feature-template.sh
parenta3869a00b3e6bb894e7dcbb0a96199e1ccaa133f (diff)
downloadit-kariera-exam-template-d42dbc0d55a825ccf8b6d404c542df3da99c7d57.tar
it-kariera-exam-template-d42dbc0d55a825ccf8b6d404c542df3da99c7d57.tar.gz
it-kariera-exam-template-d42dbc0d55a825ccf8b6d404c542df3da99c7d57.zip
Fixed a bug where create web models have their id, but view web models dont
Diffstat (limited to 'tools/add-feature-template.sh')
-rwxr-xr-xtools/add-feature-template.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/add-feature-template.sh b/tools/add-feature-template.sh
index b96d288..1ec562f 100755
--- a/tools/add-feature-template.sh
+++ b/tools/add-feature-template.sh
@@ -139,7 +139,7 @@ EOF
subdir="$dir/Models/$feature_name"
mkdir -p $subdir
-models=("" "Create" "Edit")
+models=("View" "" "Edit")
for model in "${models[@]}"
do
cat > $subdir/$model${feature_name}ServiceModel.cs<< EOF
@@ -216,7 +216,7 @@ fi
subdir="$dir/Models/$feature_name"
mkdir -p $subdir
-models=("" "Create" "Edit")
+models=("View" "" "Edit")
for model in "${models[@]}"
do
cat > $subdir/$model${feature_name}WebModel.cs<< EOF