aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Controllers/RoleController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DevHive.Web/Controllers/RoleController.cs')
-rw-r--r--src/DevHive.Web/Controllers/RoleController.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/DevHive.Web/Controllers/RoleController.cs b/src/DevHive.Web/Controllers/RoleController.cs
index d710f5a..0a8f7a1 100644
--- a/src/DevHive.Web/Controllers/RoleController.cs
+++ b/src/DevHive.Web/Controllers/RoleController.cs
@@ -26,9 +26,9 @@ namespace DevHive.Web.Controllers
[HttpPost]
public async Task<IActionResult> Create([FromBody] CreateRoleModel createRoleModel)
{
- RoleModel roleServiceModel =
- this._roleMapper.Map<RoleModel>(createRoleModel);
-
+ RoleModel roleServiceModel =
+ this._roleMapper.Map<RoleModel>(createRoleModel);
+
bool result = await this._roleService.CreateRole(roleServiceModel);
if (!result)
@@ -49,7 +49,7 @@ namespace DevHive.Web.Controllers
[HttpPut]
public async Task<IActionResult> Update(Guid id, [FromBody] UpdateRoleModel updateRoleModel)
{
- RoleModel roleServiceModel =
+ RoleModel roleServiceModel =
this._roleMapper.Map<RoleModel>(updateRoleModel);
roleServiceModel.Id = id;