public IActionResult CopyTestsToModule(int moduleId, int[] testIds) { //TODO: multiple questions in one query foreach (var tId in testIds) { repository.CopyTestToModule(tId, moduleId); } return(Json(GetCurrentModuleImportData(moduleId))); }