public void Patch(string id, [FromBody] MergePatchOrganizationStructureTypeDto value)
 {
     try {
         OrganizationStructureTypesControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
         _organizationStructureTypeApplicationService.When(value as IMergePatchOrganizationStructureType);
     } catch (Exception ex) { var response = OrganizationStructureTypesControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }
Exemplo n.º 2
0
        public async Task WhenAsync(MergePatchOrganizationStructureTypeDto c)
        {
            var idObj         = (c as IMergePatchOrganizationStructureType).Id;
            var uriParameters = new OrganizationStructureTypeUriParameters();

            uriParameters.Id = idObj;

            var req  = new OrganizationStructureTypePatchRequest(uriParameters, (MergePatchOrganizationStructureTypeDto)c);
            var resp = await _ramlClient.OrganizationStructureType.Patch(req);

            OrganizationStructureTypeProxyUtils.ThrowOnHttpResponseError(resp);
        }
Exemplo n.º 3
0
 public void When(MergePatchOrganizationStructureTypeDto c)
 {
     WhenAsync(c).GetAwaiter().GetResult();
 }