Beispiel #1
0
 public void Patch(string id, [FromBody] MergePatchLotDto value)
 {
     try {
         LotsControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
         _lotApplicationService.When(value as IMergePatchLot);
     } catch (Exception ex) { var response = HttpServiceExceptionUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }
        public async Task WhenAsync(MergePatchLotDto c)
        {
            var idObj         = (c as IMergePatchLot).LotId;
            var uriParameters = new LotUriParameters();

            uriParameters.Id = idObj;

            var req  = new LotPatchRequest(uriParameters, (MergePatchLotDto)c);
            var resp = await _ramlClient.Lot.Patch(req);

            LotProxyUtils.ThrowOnHttpResponseError(resp);
        }
 public void When(MergePatchLotDto c)
 {
     WhenAsync(c).GetAwaiter().GetResult();
 }