aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-05-13 13:31:51 +0300
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-05-13 13:31:51 +0300
commit19bb4631a7c0b57c8da19ca7aa89864ac1555836 (patch)
tree42b075064eec542b6f4a5934ea8ae81340b2e622 /tools
parent76f0df5506cebd8d4f25a3d6b284532b172d20d6 (diff)
downloadit-kariera-exam-template-19bb4631a7c0b57c8da19ca7aa89864ac1555836.tar
it-kariera-exam-template-19bb4631a7c0b57c8da19ca7aa89864ac1555836.tar.gz
it-kariera-exam-template-19bb4631a7c0b57c8da19ca7aa89864ac1555836.zip
Made GetAll async
Diffstat (limited to 'tools')
-rwxr-xr-xtools/add-feature-template.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/add-feature-template.sh b/tools/add-feature-template.sh
index b5ab0da..c5ebe45 100755
--- a/tools/add-feature-template.sh
+++ b/tools/add-feature-template.sh
@@ -131,11 +131,11 @@ namespace $project_name.Services.Services
return this._autoMapper.Map<${feature_name}ServiceModel>(curr$feature_name);
}
- public List<${feature_name}ServiceModel> GetAll()
+ public async Task<List<${feature_name}ServiceModel>> GetAll()
{
- return this._context.${feature_name}s
+ return await this._context.${feature_name}s
.Select(x => this._autoMapper.Map<${feature_name}ServiceModel>(x))
- .ToList();
+ .ToListAsync();
}
public async Task<bool> EditAsync(Edit${feature_name}ServiceModel edit${feature_name}ServiceModel)