public static void AddToDossier(int dossierId) { //Creates missing categories and sub categories (Expenses) _contextST.CreateCategoriesSubcategoriesFromImport(dossierId, true); _contextST.CreateCategoriesSubcategoriesFromImport(dossierId, false); //Imports into records from temporary records (Revenues) _contextST.CreateRecordsFromImport(dossierId, true); _contextST.CreateRecordsFromImport(dossierId, false); //empty table Record TMP _contextST.DeleteFromRecordTmp(dossierId); }