Example #1
0
 public void Patch(long?id, [FromBody] MergePatchPickwaveDto value)
 {
     try {
         PickwavesControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
         _pickwaveApplicationService.When(value as IMergePatchPickwave);
     } catch (Exception ex) { var response = PickwavesControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }
        public async Task WhenAsync(MergePatchPickwaveDto c)
        {
            var idObj         = (c as IMergePatchPickwave).PickwaveId;
            var uriParameters = new PickwaveUriParameters();

            uriParameters.Id = idObj;

            var req  = new PickwavePatchRequest(uriParameters, (MergePatchPickwaveDto)c);
            var resp = await _ramlClient.Pickwave.Patch(req);

            PickwaveProxyUtils.ThrowOnHttpResponseError(resp);
        }
 public void When(MergePatchPickwaveDto c)
 {
     WhenAsync(c).GetAwaiter().GetResult();
 }