public static int Add(ExpenseRecords expenseRecords, ExpenseTypes expenseTypes) { int retvalue = -1; expenseRecords.ExpenseTypesId = ExpenseTypes.Add(expenseTypes); retvalue = ExpenseRecords.Add(expenseRecords); return(retvalue); }
public static void Update(int Id, ExpenseRecords expenserecords, ExpenseTypes expensetypes) { expenserecords.ExpenseTypesId = ExpenseTypes.Add(expensetypes); ExpenseRecords.Update(Id, expenserecords); }