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(); }
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)); } }