Beispiel #1
0
 public void Patch(string id, [FromBody] MergePatchInventoryItemRequirementDto value)
 {
     try {
         InventoryItemRequirementsControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
         _inventoryItemRequirementApplicationService.When(value as IMergePatchInventoryItemRequirement);
     } catch (Exception ex) { var response = InventoryItemRequirementsControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }
Beispiel #2
0
        public async Task WhenAsync(MergePatchInventoryItemRequirementDto c)
        {
            var idObj         = InventoryItemRequirementProxyUtils.ToIdString((c as IMergePatchInventoryItemRequirement).InventoryItemRequirementId);
            var uriParameters = new InventoryItemRequirementUriParameters();

            uriParameters.Id = idObj;

            var req  = new InventoryItemRequirementPatchRequest(uriParameters, (MergePatchInventoryItemRequirementDto)c);
            var resp = await _ramlClient.InventoryItemRequirement.Patch(req);

            InventoryItemRequirementProxyUtils.ThrowOnHttpResponseError(resp);
        }
Beispiel #3
0
 public void When(MergePatchInventoryItemRequirementDto c)
 {
     WhenAsync(c).GetAwaiter().GetResult();
 }