예제 #1
0
        public async Task <IHttpActionResult> PredictImpactedScenarios([DynamicBody] dynamic param)
        {
            try
            {
                Scenario   sourceModifiedScenario = param.sourceModifiedScenario;
                Scenario[] allScenarios           = param.allScenarios;
                KAction[]  actionsToDelete        = param.actionsToDelete;
                KAction[]  actionsWithUpdatedWBS  = param.actionsWithUpdatedWBS;

                return(Ok(await _analyzeService.PredictImpactedScenarios(sourceModifiedScenario, allScenarios, actionsToDelete, actionsWithUpdatedWBS)));
            }
            catch (Exception ex)
            {
                _traceManager.TraceError(ex, ex.Message);
                return(InternalServerError(ex));
            }
        }