示例#1
0
        public static void SaveAcquireData(this IAnalyzeService service, Scenario[] allScenarios, Scenario updatedScenario)
        {
            var operation = new AsyncServiceOperation();

            service.SaveAcquireData(allScenarios, updatedScenario, operation.OnDone, operation.OnError);

            operation.WaitCompletion();
        }
示例#2
0
        public async Task <IHttpActionResult> SaveAcquireData([DynamicBody] dynamic param)
        {
            try
            {
                Scenario[] allScenarios    = param.allScenarios;
                Scenario   updatedScenario = param.updatedScenario;

                return(Ok(await _analyzeService.SaveAcquireData(allScenarios, updatedScenario)));
            }
            catch (Exception ex)
            {
                _traceManager.TraceError(ex, ex.Message);
                return(InternalServerError(ex));
            }
        }