public void Put(string id, [FromBody] CreateOrMergePatchOrDeleteShipmentReceiptMvoDto value)
        {
            try {
                // ///////////////////////////////
                if (value.ShipmentVersion != default(long))
                {
                    value.CommandType = CommandType.MergePatch;
                    ShipmentReceiptMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
                    _shipmentReceiptMvoApplicationService.When(value as IMergePatchShipmentReceiptMvo);
                    return;
                }
                // ///////////////////////////////

                ShipmentReceiptMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
                _shipmentReceiptMvoApplicationService.When(value as ICreateShipmentReceiptMvo);
            } catch (Exception ex) { var response = ShipmentReceiptMvosControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
        }
 public IShipmentReceiptMvoStateDto Get(string id, string fields = null)
 {
     try {
         var idObj = ShipmentReceiptMvosControllerUtils.ParseIdString(id);
         var state = _shipmentReceiptMvoApplicationService.Get(idObj);
         if (state == null)
         {
             return(null);
         }
         var stateDto = new ShipmentReceiptMvoStateDtoWrapper(state);
         if (String.IsNullOrWhiteSpace(fields))
         {
             stateDto.AllFieldsReturned = true;
         }
         else
         {
             stateDto.ReturnedFieldsString = fields;
         }
         return(stateDto);
     } catch (Exception ex) { var response = ShipmentReceiptMvosControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }
 public Type ResolveTypeByPropertyName(string propertyName)
 {
     return(ShipmentReceiptMvosControllerUtils.GetFilterPropertyType(propertyName));
 }