Website Summary Files Commits Branches @commit @diff @stats
path: root / src / DevHive.Services / Services / RoleService.cs
diff options
context:
space:
mode:
Commit1c91e52c91a1a94616eca632ffdd930ffeb616f4 (patch)
Author
 transtrike <transtrike@gmail.com>
2021-01-22 22:39:23 +0200
Committer
 transtrike <transtrike@gmail.com>
2021-01-22 22:39:23 +0200
Files64cd9a66608c0f2579cf44d0bcd82b87b6c15d63 /src/DevHive.Services/Services/RoleService.cs
DevHive-1c91e52c91a1a94616eca632ffdd930ffeb616f4.tar
DevHive-1c91e52c91a1a94616eca632ffdd930ffeb616f4.tar.gz
DevHive-1c91e52c91a1a94616eca632ffdd930ffeb616f4.zip
Parentb24a160bbdb4df529a932b392d7c0d75013b9319 (diff)
Kamen's proposal in Update() at BaseRepo merged
1 files changed, 1 insertions, 1 deletions
-rw-r--r--src/DevHive.Services/Services/RoleService.cs2
diff --git a/src/DevHive.Services/Services/RoleService.cs b/src/DevHive.Services/Services/RoleService.cs
index 3ebb7c8..896946d 100644
--- a/src/DevHive.Services/Services/RoleService.cs
+++ b/src/DevHive.Services/Services/RoleService.cs
@@ -56,7 +56,7 @@ namespace DevHive.Services.Services
throw new ArgumentException("Role name already exists!");
Role role = this._roleMapper.Map<Role>(updateRoleServiceModel);
- return await this._roleRepository.EditAsync(role);
+ return await this._roleRepository.EditAsync(updateRoleServiceModel.Id, role);
}
public async Task<bool> DeleteRole(Guid id)