aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Controllers/TechnologyController.cs
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2021-01-17 12:24:17 +0200
committertranstrike <transtrike@gmail.com>2021-01-17 12:24:17 +0200
commitc43a7665b9febe890eb6dac143b62c36464cc94d (patch)
treef016e79627d0074ccf6f6456c80a91c0410c191f /src/DevHive.Web/Controllers/TechnologyController.cs
parente037d611c7ba00d0126a8f954cdc56d7bfeb979e (diff)
downloadDevHive-c43a7665b9febe890eb6dac143b62c36464cc94d.tar
DevHive-c43a7665b9febe890eb6dac143b62c36464cc94d.tar.gz
DevHive-c43a7665b9febe890eb6dac143b62c36464cc94d.zip
Moved Lang&Tech CRUD to Update in User Layer
Diffstat (limited to 'src/DevHive.Web/Controllers/TechnologyController.cs')
-rw-r--r--src/DevHive.Web/Controllers/TechnologyController.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/DevHive.Web/Controllers/TechnologyController.cs b/src/DevHive.Web/Controllers/TechnologyController.cs
index 3be3b8a..7f2f400 100644
--- a/src/DevHive.Web/Controllers/TechnologyController.cs
+++ b/src/DevHive.Web/Controllers/TechnologyController.cs
@@ -46,9 +46,10 @@ namespace DevHive.Web.Controllers
[HttpPut]
public async Task<IActionResult> Update(Guid technologyId, [FromBody] UpdateTechnologyWebModel updateModel)
{
- UpdateTechnologyServiceModel updateTechnologyWebModel = this._technologyMapper.Map<UpdateTechnologyServiceModel>(updateModel);
+ UpdateTechnologyServiceModel updateTechnologyServiceModel = this._technologyMapper.Map<UpdateTechnologyServiceModel>(updateModel);
+ updateTechnologyServiceModel.Id = technologyId;
- bool result = await this._technologyService.UpdateTechnology(technologyId, updateTechnologyWebModel);
+ bool result = await this._technologyService.UpdateTechnology(updateTechnologyServiceModel);
if (!result)
return new BadRequestObjectResult("Could not update Technology");