/// <inheritdoc />
        public async Task <IEnumerable <GroupResource> > GetGroupResourceSectionAsync(string name)
        {
            var response = await _service.GetGroupResourceSectionAsync(name);

            switch (response)
            {
            case List <GroupResource> result:
                return(result);

            case ErrorResponse error:
                throw new Exception(error.ErrorMessage);
            }

            return(Array.Empty <GroupResource>());
        }