diff options
| author | transtrike <transtrike@gmail.com> | 2021-01-17 12:44:46 +0200 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2021-01-17 12:44:46 +0200 |
| commit | 797d034dce057cf2aaec1574ee0b640b1d570416 (patch) | |
| tree | c0dcb9cf2a0ee72bc28b99aeed2315df6321fde6 /src/DevHive.Services/Services/TechnologyService.cs | |
| parent | c43a7665b9febe890eb6dac143b62c36464cc94d (diff) | |
| download | DevHive-797d034dce057cf2aaec1574ee0b640b1d570416.tar DevHive-797d034dce057cf2aaec1574ee0b640b1d570416.tar.gz DevHive-797d034dce057cf2aaec1574ee0b640b1d570416.zip | |
Made Lang&Tech layers consistant; Merged C**D methods to Update
Diffstat (limited to 'src/DevHive.Services/Services/TechnologyService.cs')
| -rw-r--r-- | src/DevHive.Services/Services/TechnologyService.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/DevHive.Services/Services/TechnologyService.cs b/src/DevHive.Services/Services/TechnologyService.cs index c088281..4e74c83 100644 --- a/src/DevHive.Services/Services/TechnologyService.cs +++ b/src/DevHive.Services/Services/TechnologyService.cs @@ -35,9 +35,9 @@ namespace DevHive.Services.Services #region Read - public async Task<CreateTechnologyServiceModel> GetTechnologyById(Guid technologyId) + public async Task<CreateTechnologyServiceModel> GetTechnologyById(Guid id) { - Technology technology = await this._technologyRepository.GetByIdAsync(technologyId); + Technology technology = await this._technologyRepository.GetByIdAsync(id); if (technology == null) throw new ArgumentException("The technology does not exist"); @@ -64,12 +64,12 @@ namespace DevHive.Services.Services #endregion #region Delete - public async Task<bool> DeleteTechnology(Guid technologyId) + public async Task<bool> DeleteTechnology(Guid id) { - if (!await this._technologyRepository.DoesTechnologyExistAsync(technologyId)) + if (!await this._technologyRepository.DoesTechnologyExistAsync(id)) throw new ArgumentException("Technology does not exist!"); - Technology technology = await this._technologyRepository.GetByIdAsync(technologyId); + Technology technology = await this._technologyRepository.GetByIdAsync(id); bool result = await this._technologyRepository.DeleteAsync(technology); return result; |
