diff options
| author | transtrike <transtrike@gmail.com> | 2021-02-01 11:22:50 +0200 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2021-02-01 11:22:50 +0200 |
| commit | 94525df566a16fab3b499c8f83bafcfa29b0478a (patch) | |
| tree | 44eb548a76ff33bd484e35c8ef6734eab5981968 /src/DevHive.Services/Services/TechnologyService.cs | |
| parent | 640f50e19bf8aa598fcd63c5e27c2eda2451d86c (diff) | |
| download | DevHive-94525df566a16fab3b499c8f83bafcfa29b0478a.tar DevHive-94525df566a16fab3b499c8f83bafcfa29b0478a.tar.gz DevHive-94525df566a16fab3b499c8f83bafcfa29b0478a.zip | |
Tech & Lang read models return ids
Diffstat (limited to 'src/DevHive.Services/Services/TechnologyService.cs')
| -rw-r--r-- | src/DevHive.Services/Services/TechnologyService.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DevHive.Services/Services/TechnologyService.cs b/src/DevHive.Services/Services/TechnologyService.cs index 3e7678e..6dd6286 100644 --- a/src/DevHive.Services/Services/TechnologyService.cs +++ b/src/DevHive.Services/Services/TechnologyService.cs @@ -40,14 +40,14 @@ namespace DevHive.Services.Services #endregion #region Read - public async Task<CreateTechnologyServiceModel> GetTechnologyById(Guid id) + public async Task<ReadTechnologyServiceModel> GetTechnologyById(Guid id) { Technology technology = await this._technologyRepository.GetByIdAsync(id); if (technology == null) throw new ArgumentException("The technology does not exist"); - return this._technologyMapper.Map<CreateTechnologyServiceModel>(technology); + return this._technologyMapper.Map<ReadTechnologyServiceModel>(technology); } public HashSet<ReadTechnologyServiceModel> GetTechnologies() |
