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(); }
public static void Delete(int budgetHeaderId) { Data.Budget dataBudget; dataBudget = new Data.Budget(); dataBudget.Delete(budgetHeaderId); dataBudget.Dispose(); }
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; }