Пример #1
0
        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 CreateRecordsFromImport(int dossierId, bool isExpense)
 {
     using (PersonalFinancesDBEntities context = new PersonalFinancesDBEntities())
     {
         context.CreateRecordsFromImport(dossierId, isExpense);
     }
 }