public IHttpActionResult GetUser(Guid userId) { if (userId == Guid.Empty) { throw new ArgumentException("userId must be defined."); } User user = mapperFactory.CreateUserMapper().Map(identityManagementService.GetUser(userId)); return Ok(user); }