public IActionResult GetAllUsersOnASession(int sessionId) { var users = _repository.GetAllUsersOnASession(sessionId); var noUsers = !users.Any(); if (noUsers) { NotFound("No users"); } return(Ok(users)); }