aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Services/Services/TechnologyService.cs
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2021-01-14 00:12:48 +0200
committertranstrike <transtrike@gmail.com>2021-01-14 00:12:48 +0200
commit2948a92492141f4d807449191901f499530d8465 (patch)
tree36d30886af22351d86d937f03558c501254ad621 /src/DevHive.Services/Services/TechnologyService.cs
parentd77add41838823ad50caf8d1ae5ee8e61c1bb26b (diff)
downloadDevHive-2948a92492141f4d807449191901f499530d8465.tar
DevHive-2948a92492141f4d807449191901f499530d8465.tar.gz
DevHive-2948a92492141f4d807449191901f499530d8465.zip
Fixed issues in Language & Technology and their interactions with User
Diffstat (limited to 'src/DevHive.Services/Services/TechnologyService.cs')
-rw-r--r--src/DevHive.Services/Services/TechnologyService.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DevHive.Services/Services/TechnologyService.cs b/src/DevHive.Services/Services/TechnologyService.cs
index cb8fdfc..2b24ed6 100644
--- a/src/DevHive.Services/Services/TechnologyService.cs
+++ b/src/DevHive.Services/Services/TechnologyService.cs
@@ -23,7 +23,7 @@ namespace DevHive.Services.Services
public async Task<bool> Create(CreateTechnologyServiceModel technologyServiceModel)
{
- if (await this._technologyRepository.DoesTechnologyNameExist(technologyServiceModel.Name))
+ if (await this._technologyRepository.DoesTechnologyNameExistAsync(technologyServiceModel.Name))
throw new ArgumentException("Technology already exists!");
Technology technology = this._technologyMapper.Map<Technology>(technologyServiceModel);
@@ -53,7 +53,7 @@ namespace DevHive.Services.Services
if (!await this._technologyRepository.DoesTechnologyExistAsync(updateTechnologyServiceModel.Id))
throw new ArgumentException("Technology does not exist!");
- if (await this._technologyRepository.DoesTechnologyNameExist(updateTechnologyServiceModel.Name))
+ if (await this._technologyRepository.DoesTechnologyNameExistAsync(updateTechnologyServiceModel.Name))
throw new ArgumentException("Technology name already exists!");
Technology technology = this._technologyMapper.Map<Technology>(updateTechnologyServiceModel);
@@ -77,4 +77,4 @@ namespace DevHive.Services.Services
}
#endregion
}
-} \ No newline at end of file
+}