public void Patch(string id, [FromBody] MergePatchOrderRoleMvoDto value)
 {
     try {
         OrderRoleMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
         _orderRoleMvoApplicationService.When(value as IMergePatchOrderRoleMvo);
     } catch (Exception ex) { var response = OrderRoleMvosControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }
        public async Task WhenAsync(MergePatchOrderRoleMvoDto c)
        {
            var idObj         = OrderRoleMvoProxyUtils.ToIdString((c as IMergePatchOrderRoleMvo).OrderRoleId);
            var uriParameters = new OrderRoleMvoUriParameters();

            uriParameters.Id = idObj;

            var req  = new OrderRoleMvoPatchRequest(uriParameters, (MergePatchOrderRoleMvoDto)c);
            var resp = await _ramlClient.OrderRoleMvo.Patch(req);

            OrderRoleMvoProxyUtils.ThrowOnHttpResponseError(resp);
        }
 public void When(MergePatchOrderRoleMvoDto c)
 {
     WhenAsync(c).GetAwaiter().GetResult();
 }