aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Services/Services/RoleService.cs
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2021-01-26 10:55:25 +0200
committertranstrike <transtrike@gmail.com>2021-01-26 10:55:25 +0200
commitd2bc08c0dcd6f0dc0822333bbb00c9fc851f49cb (patch)
tree0987a60a73a13ac7894ca01a1edc3274327d5cbe /src/DevHive.Services/Services/RoleService.cs
parentf910a2a63cb83b35c6589591400a69c8f7f7917c (diff)
downloadDevHive-d2bc08c0dcd6f0dc0822333bbb00c9fc851f49cb.tar
DevHive-d2bc08c0dcd6f0dc0822333bbb00c9fc851f49cb.tar.gz
DevHive-d2bc08c0dcd6f0dc0822333bbb00c9fc851f49cb.zip
Brief testing of GetPost
Diffstat (limited to 'src/DevHive.Services/Services/RoleService.cs')
-rw-r--r--src/DevHive.Services/Services/RoleService.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DevHive.Services/Services/RoleService.cs b/src/DevHive.Services/Services/RoleService.cs
index a8b8e17..9f7a5ac 100644
--- a/src/DevHive.Services/Services/RoleService.cs
+++ b/src/DevHive.Services/Services/RoleService.cs
@@ -38,12 +38,12 @@ namespace DevHive.Services.Services
}
- public async Task<RoleServiceModel> GetRoleById(Guid id)
+ public async Task<ReadRoleServiceModel> GetRoleById(Guid id)
{
Role role = await this._roleRepository.GetByIdAsync(id)
?? throw new ArgumentException("Role does not exist!");
- return this._roleMapper.Map<RoleServiceModel>(role);
+ return this._roleMapper.Map<ReadRoleServiceModel>(role);
}
public async Task<bool> UpdateRole(UpdateRoleServiceModel updateRoleServiceModel)