Ejemplo n.º 1
0
        public static void Edit(int budgetHeaderId, string budgetName, double weeklyAmount, List<int> deletedExpenseTypes, List<int> addedExpenseTypes)
        {
            Data.Budget dataBudget;

            dataBudget = new Data.Budget();
            dataBudget.Edit(budgetHeaderId, budgetName, weeklyAmount, deletedExpenseTypes, addedExpenseTypes);
            dataBudget.Dispose();
        }
Ejemplo n.º 2
0
        public static void Delete(int budgetHeaderId)
        {
            Data.Budget dataBudget;

            dataBudget = new Data.Budget();
            dataBudget.Delete(budgetHeaderId);
            dataBudget.Dispose();
        }
Ejemplo n.º 3
0
        public static int Add(string budgetName, double weeklyAmount, List<int> addedExpenseTypes)
        {
            Data.Budget dataBudget;
            int result;

            dataBudget = new Data.Budget();
            result = dataBudget.Add(budgetName, weeklyAmount, addedExpenseTypes);
            dataBudget.Dispose();

            return result;
        }