diff options
| author | transtrike <transtrike@gmail.com> | 2021-01-21 19:42:40 +0200 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2021-01-21 19:42:40 +0200 |
| commit | 78884a445ec3f21d06e5859d03009b7d71bbb784 (patch) | |
| tree | 9bdb300525bd9f9fa5bbc1cd85f7beb70d954349 /src/DevHive.Services | |
| parent | 58178d5036f65bb4896fea08bbec9388a8ab8c20 (diff) | |
| parent | 833c4e183581bc69102d66872b4b5bb157d80821 (diff) | |
| download | DevHive-78884a445ec3f21d06e5859d03009b7d71bbb784.tar DevHive-78884a445ec3f21d06e5859d03009b7d71bbb784.tar.gz DevHive-78884a445ec3f21d06e5859d03009b7d71bbb784.zip | |
Code cleanup, consistency and merge conflict resolved
Diffstat (limited to 'src/DevHive.Services')
| -rw-r--r-- | src/DevHive.Services/Services/TechnologyService.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/DevHive.Services/Services/TechnologyService.cs b/src/DevHive.Services/Services/TechnologyService.cs index 1b2f0ff..88ed702 100644 --- a/src/DevHive.Services/Services/TechnologyService.cs +++ b/src/DevHive.Services/Services/TechnologyService.cs @@ -20,7 +20,6 @@ namespace DevHive.Services.Services } #region Create - public async Task<Guid> Create(CreateTechnologyServiceModel technologyServiceModel) { if (await this._technologyRepository.DoesTechnologyNameExistAsync(technologyServiceModel.Name)) @@ -29,7 +28,7 @@ namespace DevHive.Services.Services Technology technology = this._technologyMapper.Map<Technology>(technologyServiceModel); bool success = await this._technologyRepository.AddAsync(technology); - if(success) + if (success) { Technology newTechnology = await this._technologyRepository.GetByNameAsync(technologyServiceModel.Name); return newTechnology.Id; @@ -40,7 +39,6 @@ namespace DevHive.Services.Services #endregion #region Read - public async Task<CreateTechnologyServiceModel> GetTechnologyById(Guid id) { Technology technology = await this._technologyRepository.GetByIdAsync(id); @@ -53,7 +51,6 @@ namespace DevHive.Services.Services #endregion #region Update - public async Task<bool> UpdateTechnology(UpdateTechnologyServiceModel updateTechnologyServiceModel) { if (!await this._technologyRepository.DoesTechnologyExistAsync(updateTechnologyServiceModel.Id)) |
