예제 #1
0
 public void Patch(string id, [FromBody] MergePatchPartyDto value)
 {
     try {
         PartiesControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
         _partyApplicationService.When(value as IMergePatchParty);
     } catch (Exception ex) { var response = HttpServiceExceptionUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }
예제 #2
0
        public async Task WhenAsync(MergePatchPartyDto c)
        {
            var idObj         = (c as IMergePatchParty).PartyId;
            var uriParameters = new PartyUriParameters();

            uriParameters.Id = idObj;

            var req  = new PartyPatchRequest(uriParameters, (MergePatchPartyDto)c);
            var resp = await _ramlClient.Party.Patch(req);

            PartyProxyUtils.ThrowOnHttpResponseError(resp);
        }
예제 #3
0
 public void When(MergePatchPartyDto c)
 {
     WhenAsync(c).GetAwaiter().GetResult();
 }