public void Patch(string id, [FromBody] MergePatchOrderItemShipGroupAssociationMvoDto value) { try { OrderItemShipGroupAssociationMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value); _orderItemShipGroupAssociationMvoApplicationService.When(value as IMergePatchOrderItemShipGroupAssociationMvo); } catch (Exception ex) { var response = OrderItemShipGroupAssociationMvosControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); } }
public async Task WhenAsync(MergePatchOrderItemShipGroupAssociationMvoDto c) { var idObj = OrderItemShipGroupAssociationMvoProxyUtils.ToIdString((c as IMergePatchOrderItemShipGroupAssociationMvo).OrderItemShipGroupAssociationId); var uriParameters = new OrderItemShipGroupAssociationMvoUriParameters(); uriParameters.Id = idObj; var req = new OrderItemShipGroupAssociationMvoPatchRequest(uriParameters, (MergePatchOrderItemShipGroupAssociationMvoDto)c); var resp = await _ramlClient.OrderItemShipGroupAssociationMvo.Patch(req); OrderItemShipGroupAssociationMvoProxyUtils.ThrowOnHttpResponseError(resp); }
public void When(MergePatchOrderItemShipGroupAssociationMvoDto c) { WhenAsync(c).GetAwaiter().GetResult(); }