예제 #1
0
        public static int Add(ExpenseRecords expenseRecords, ExpenseTypes expenseTypes)
        {
            int retvalue = -1;

            expenseRecords.ExpenseTypesId = ExpenseTypes.Add(expenseTypes);
            retvalue = ExpenseRecords.Add(expenseRecords);

            return(retvalue);
        }
예제 #2
0
 public static void Update(int Id, ExpenseRecords expenserecords, ExpenseTypes expensetypes)
 {
     expenserecords.ExpenseTypesId = ExpenseTypes.Add(expensetypes);
     ExpenseRecords.Update(Id, expenserecords);
 }