diff options
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/add-feature-template.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/add-feature-template.sh b/tools/add-feature-template.sh index edce00d..a85cb7a 100755 --- a/tools/add-feature-template.sh +++ b/tools/add-feature-template.sh @@ -105,6 +105,13 @@ namespace $project_name.Services return this._autoMapper.Map<${feature_name}ServiceModel>(curr$feature_name); } + public List<${feature_name}ServiceModel> GetAll() + { + return this._context.${feature_name}s + .Select(x => this._autoMapper.Map<${feature_name}ServiceModel>(x)) + .ToList(); + } + public async Task<bool> EditAsync(Edit${feature_name}ServiceModel edit${feature_name}ServiceModel) { $feature_name curr$feature_name = this._autoMapper.Map<$feature_name>(edit${feature_name}ServiceModel); |
