Exemple #1
0
        public async Task <IEnumerable <V1User> > GetAll()
        {
            var response = await _usersApi.ApiPublicV1UserGetAsync(
                _configuration.VictorOpsApiId,
                _configuration.VictorOpsApiKey
                );

            if (response == null)
            {
                throw new ArgumentException(
                          $"Null response while getting all users");
            }

            return(response.Users);
        }