public IActionResult GetUserVacationRequests() { var tokenPayload = _accessTokenProvider.GetTokenPayload(); _logger.Info("Get UserVacationRequests endpoint...", new { tokenPayload }); if (tokenPayload != null) { var foundVacationRequests = _vacationRepository.GetUserVacationRequests(tokenPayload.UserId); if (foundVacationRequests != null && foundVacationRequests.Count > 0) { _logger.Info("Get UserVacationRequests endpoint successful!", new { foundVacationRequests.Count }); return(Ok(foundVacationRequests)); } return(NoContent()); } return(Unauthorized()); }