public async Task <IHttpActionResult> ProcessRequestAsync(AmalgamateMergeRequest payload)
        {
            var result = await _establishmentWriteService.AmalgamateOrMergeAsync(payload, User);

            if (!result.HasErrors)
            {
                return(Ok(result));
            }
            else
            {
                return(Content(HttpStatusCode.BadRequest, result));
            }
        }
 public async Task <ApiResponse <AmalgamateMergeResult, AmalgamateMergeValidationEnvelope[]> > AmalgamateOrMergeAsync(AmalgamateMergeRequest request, IPrincipal principal)
 => await _httpClient.PostAsync <AmalgamateMergeResult, AmalgamateMergeValidationEnvelope[]>("establishment/amalgamate-merge", request, principal);