public void Delete(string id, string commandId, string version, string requesterId = default(string))
 {
     try {
         var value = new DeleteOrderShipGroupMvoDto();
         value.CommandId    = commandId;
         value.RequesterId  = requesterId;
         value.OrderVersion = (long)Convert.ChangeType(version, typeof(long));
         OrderShipGroupMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
         _orderShipGroupMvoApplicationService.When(value as IDeleteOrderShipGroupMvo);
     } catch (Exception ex) { var response = OrderShipGroupMvosControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }
        public async Task WhenAsync(DeleteOrderShipGroupMvoDto c)
        {
            var idObj         = OrderShipGroupMvoProxyUtils.ToIdString((c as IDeleteOrderShipGroupMvo).OrderShipGroupId);
            var uriParameters = new OrderShipGroupMvoUriParameters();

            uriParameters.Id = idObj;

            var q = new OrderShipGroupMvoDeleteQuery();

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

            var req = new OrderShipGroupMvoDeleteRequest(uriParameters);

            req.Query = q;

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

            OrderShipGroupMvoProxyUtils.ThrowOnHttpResponseError(resp);
        }
 public void When(DeleteOrderShipGroupMvoDto c)
 {
     WhenAsync(c).GetAwaiter().GetResult();
 }