public IActionResult Get(string reference) { if (!string.IsNullOrEmpty(reference)) { if (reference.ToLower() == "none") { reference = string.Empty; } } var userInfo = _authenticationService.GetUserInfo(Request.Token()); if (!_userValidationService.IsNewUser(userInfo.Sub, reference)) { _userValidationService.CreateAttendee(userInfo, reference); } var result = _userValidationService.GetUser(userInfo.Sub); return(Ok(result)); }