예제 #1
0
        public IActionResult GetAllUsersOnASession(int sessionId)
        {
            var users   = _repository.GetAllUsersOnASession(sessionId);
            var noUsers = !users.Any();

            if (noUsers)
            {
                NotFound("No users");
            }
            return(Ok(users));
        }