public IHttpActionResult GetRole(Guid roleId) { if (roleId == Guid.Empty) { throw new ArgumentException("roleId must be defined."); } Role role = mapperFactory.CreateRoleMapper().Map(identityManagementService.GetRole(roleId)); return(Ok(role)); }
public IHttpActionResult GetRole(Guid roleId) { if (roleId == Guid.Empty) { throw new ArgumentException("roleId must be defined."); } Role role = mapperFactory.CreateRoleMapper().Map(identityManagementService.GetRole(roleId)); return(Ok(role)); }