aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Controllers/TechnologyController.cs
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2021-01-12 20:45:14 +0200
committertranstrike <transtrike@gmail.com>2021-01-12 20:45:14 +0200
commit56f5578d5f93a56984deb6735dba51551868f6d8 (patch)
tree5f309ba5a79882ad41ed78bf7ae8f18f38be757e /src/DevHive.Web/Controllers/TechnologyController.cs
parentd2a754aa220f37ac28393451e7ad5793687bb999 (diff)
downloadDevHive-56f5578d5f93a56984deb6735dba51551868f6d8.tar
DevHive-56f5578d5f93a56984deb6735dba51551868f6d8.tar.gz
DevHive-56f5578d5f93a56984deb6735dba51551868f6d8.zip
Full implementation of Language & Technologies to User
Diffstat (limited to 'src/DevHive.Web/Controllers/TechnologyController.cs')
-rw-r--r--src/DevHive.Web/Controllers/TechnologyController.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/DevHive.Web/Controllers/TechnologyController.cs b/src/DevHive.Web/Controllers/TechnologyController.cs
index 08d4ca8..e02ca3d 100644
--- a/src/DevHive.Web/Controllers/TechnologyController.cs
+++ b/src/DevHive.Web/Controllers/TechnologyController.cs
@@ -23,9 +23,9 @@ namespace DevHive.Web.Controllers
}
[HttpPost]
- public async Task<IActionResult> Create([FromBody] TechnologyWebModel technologyWebModel)
+ public async Task<IActionResult> Create([FromBody] CreateTechnologyWebModel technologyWebModel)
{
- TechnologyServiceModel technologyServiceModel = this._technologyMapper.Map<TechnologyServiceModel>(technologyWebModel);
+ CreateTechnologyServiceModel technologyServiceModel = this._technologyMapper.Map<CreateTechnologyServiceModel>(technologyWebModel);
bool result = await this._technologyService.Create(technologyServiceModel);
@@ -48,7 +48,6 @@ namespace DevHive.Web.Controllers
public async Task<IActionResult> Update(Guid id, [FromBody] UpdateTechnologyWebModel updateModel)
{
UpdateTechnologyServiceModel updateTechnologyWebModel = this._technologyMapper.Map<UpdateTechnologyServiceModel>(updateModel);
- updateTechnologyWebModel.Id = id;
bool result = await this._technologyService.UpdateTechnology(updateTechnologyWebModel);