diff options
| author | transtrike <transtrike@gmail.com> | 2021-01-26 15:38:40 +0200 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2021-01-26 15:38:40 +0200 |
| commit | bddc0b0566bc19e936ccae9d3aa16b6e0116b186 (patch) | |
| tree | 54db0a9aeafda117b85086cad6d5b9136bbf94ff /src/DevHive.Services/Services/TechnologyService.cs | |
| parent | 93c14acb17f4b845c9e2b6781a6a3c10e23b6bf5 (diff) | |
| download | DevHive-bddc0b0566bc19e936ccae9d3aa16b6e0116b186.tar DevHive-bddc0b0566bc19e936ccae9d3aa16b6e0116b186.tar.gz DevHive-bddc0b0566bc19e936ccae9d3aa16b6e0116b186.zip | |
GetLanguages&GetTechnologies implmenented
Diffstat (limited to 'src/DevHive.Services/Services/TechnologyService.cs')
| -rw-r--r-- | src/DevHive.Services/Services/TechnologyService.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/DevHive.Services/Services/TechnologyService.cs b/src/DevHive.Services/Services/TechnologyService.cs index c879ad7..039cd8a 100644 --- a/src/DevHive.Services/Services/TechnologyService.cs +++ b/src/DevHive.Services/Services/TechnologyService.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; using System.Threading.Tasks; using AutoMapper; using DevHive.Data.Interfaces.Repositories; @@ -48,6 +49,12 @@ namespace DevHive.Services.Services return this._technologyMapper.Map<CreateTechnologyServiceModel>(technology); } + public HashSet<ReadTechnologyServiceModel> GetTechnologies() + { + HashSet<Technology> technologies = this._technologyRepository.GetTechnologies(); + + return this._technologyMapper.Map<HashSet<ReadTechnologyServiceModel>>(technologies); + } #endregion #region Update |
