public async Task WhenAsync(MergePatchAttributeSetInstanceExtensionFieldGroupDto c)
        {
            var idObj         = (c as IMergePatchAttributeSetInstanceExtensionFieldGroup).Id;
            var uriParameters = new AttributeSetInstanceExtensionFieldGroupUriParameters();

            uriParameters.Id = idObj;

            var req  = new AttributeSetInstanceExtensionFieldGroupPatchRequest(uriParameters, (MergePatchAttributeSetInstanceExtensionFieldGroupDto)c);
            var resp = await _ramlClient.AttributeSetInstanceExtensionFieldGroup.Patch(req);

            AttributeSetInstanceExtensionFieldGroupProxyUtils.ThrowOnHttpResponseError(resp);
        }
        public async Task <IAttributeSetInstanceExtensionFieldGroupState> GetAsync(string id)
        {
            IAttributeSetInstanceExtensionFieldGroupState state = null;
            var idObj         = id;
            var uriParameters = new AttributeSetInstanceExtensionFieldGroupUriParameters();

            uriParameters.Id = idObj;

            var req = new AttributeSetInstanceExtensionFieldGroupGetRequest(uriParameters);

            var resp = await _ramlClient.AttributeSetInstanceExtensionFieldGroup.Get(req);

            AttributeSetInstanceExtensionFieldGroupProxyUtils.ThrowOnHttpResponseError(resp);
            state = resp.Content;
            return(state);
        }
        public async Task WhenAsync(DeleteAttributeSetInstanceExtensionFieldGroupDto c)
        {
            var idObj         = (c as IDeleteAttributeSetInstanceExtensionFieldGroup).Id;
            var uriParameters = new AttributeSetInstanceExtensionFieldGroupUriParameters();

            uriParameters.Id = idObj;

            var q = new AttributeSetInstanceExtensionFieldGroupDeleteQuery();

            q.CommandId   = c.CommandId;
            q.RequesterId = c.RequesterId;
            q.Version     = Convert.ToString(c.Version);

            var req = new AttributeSetInstanceExtensionFieldGroupDeleteRequest(uriParameters);

            req.Query = q;

            var resp = await _ramlClient.AttributeSetInstanceExtensionFieldGroup.Delete(req);

            AttributeSetInstanceExtensionFieldGroupProxyUtils.ThrowOnHttpResponseError(resp);
        }