diff options
Diffstat (limited to 'tools/add-feature-template.sh')
| -rwxr-xr-x | tools/add-feature-template.sh | 6 |
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) |
