public void Patch(string id, [FromBody] MergePatchAttributeSetInstanceExtensionFieldGroupDto value) { try { AttributeSetInstanceExtensionFieldGroupsControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value); _attributeSetInstanceExtensionFieldGroupApplicationService.When(value as IMergePatchAttributeSetInstanceExtensionFieldGroup); } catch (Exception ex) { var response = HttpServiceExceptionUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); } }
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 void When(MergePatchAttributeSetInstanceExtensionFieldGroupDto c) { WhenAsync(c).GetAwaiter().GetResult(); }