aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Services/Services/TechnologyService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DevHive.Services/Services/TechnologyService.cs')
-rw-r--r--src/DevHive.Services/Services/TechnologyService.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DevHive.Services/Services/TechnologyService.cs b/src/DevHive.Services/Services/TechnologyService.cs
index 246ad2c..6715606 100644
--- a/src/DevHive.Services/Services/TechnologyService.cs
+++ b/src/DevHive.Services/Services/TechnologyService.cs
@@ -20,7 +20,7 @@ namespace DevHive.Services.Services
public async Task<bool> Create(TechnologyServiceModel technologyServiceModel)
{
- if (!await this._technologyRepository.DoesTechnologyNameExist(technologyServiceModel.Name))
+ if (await this._technologyRepository.DoesTechnologyNameExist(technologyServiceModel.Name))
throw new ArgumentException("Technology already exists!");
Technology technology = this._technologyMapper.Map<Technology>(technologyServiceModel);
@@ -44,7 +44,7 @@ namespace DevHive.Services.Services
if (!await this._technologyRepository.DoesTechnologyExist(updateTechnologyServiceModel.Id))
throw new ArgumentException("Technology does not exist!");
- if (!await this._technologyRepository.DoesTechnologyNameExist(updateTechnologyServiceModel.Name))
+ if (await this._technologyRepository.DoesTechnologyNameExist(updateTechnologyServiceModel.Name))
throw new ArgumentException("Technology name already exists!");
Technology technology = this._technologyMapper.Map<Technology>(updateTechnologyServiceModel);