예제 #1
0
        public static void MergeReferentials(this IReferentialsService service, IActionReferential master, IActionReferential[] slaves)
        {
            var operation = new AsyncServiceOperation();

            service.MergeReferentials(master, slaves, operation.OnDone, operation.OnError);

            operation.WaitCompletion();
        }
예제 #2
0
        public async Task <IHttpActionResult> MergeReferentials([DynamicBody] dynamic param)
        {
            try
            {
                IActionReferential   master = param.master;
                IActionReferential[] slaves = param.slaves;
                await _referentialService.MergeReferentials(master, slaves);

                return(Ok());
            }
            catch (Exception ex)
            {
                _traceManager.TraceError(ex, ex.Message);
                return(InternalServerError(ex));
            }
        }