public async Task <IHttpActionResult> ImportProject([DynamicBody] dynamic param) { try { ProjectImport import = param.allScenarios.ToObject <ProjectImport>(); bool mergeReferentials = param.allScenarios.ToObject <bool>(); string videosDirectory = param.allScenarios.ToObject <string>(); await _importExportService.ImportProject(import, mergeReferentials, videosDirectory); return(Ok()); } catch (Exception ex) { _traceManager.TraceError(ex, ex.Message); return(InternalServerError(ex)); } }