Пример #1
0
        public async Task <AzureGroupObject> GetGroupByNameAsync(string authToken, string groupName)
        {
            var grp = await ExecuteGetAsync <AzureGroupObject[]>(authToken, MsGraph.GetGroupObjectByNameUrl(groupName));

            return((grp.Value == null || grp.Value.Length == 0) ? null : grp.Value[0]);
        }
Пример #2
0
        public AzureGroupObject GetGroupByName(string authToken, string groupName)
        {
            var grp = ExecuteGet <AzureGroupObject[]>(authToken, MsGraph.GetGroupObjectByNameUrl(groupName));

            return((grp.Value == null || grp.Value.Length == 0) ? null : grp.Value[0]);
        }