예제 #1
0
 public void Patch(string id, [FromBody] MergePatchPicklistBinDto value)
 {
     try {
         PicklistBinsControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
         _picklistBinApplicationService.When(value as IMergePatchPicklistBin);
     } catch (Exception ex) { var response = HttpServiceExceptionUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }
        public async Task WhenAsync(MergePatchPicklistBinDto c)
        {
            var idObj         = (c as IMergePatchPicklistBin).PicklistBinId;
            var uriParameters = new PicklistBinUriParameters();

            uriParameters.Id = idObj;

            var req  = new PicklistBinPatchRequest(uriParameters, (MergePatchPicklistBinDto)c);
            var resp = await _ramlClient.PicklistBin.Patch(req);

            PicklistBinProxyUtils.ThrowOnHttpResponseError(resp);
        }
 public void When(MergePatchPicklistBinDto c)
 {
     WhenAsync(c).GetAwaiter().GetResult();
 }