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); }
public static void CreateCategoriesFromImport(int dossierId, bool isExpense) { using (PersonalFinancesDBEntities context = new PersonalFinancesDBEntities()) { context.CreateCategoriesSubcategoriesFromImport(dossierId, isExpense); } }