public void Delete(int id) { Data.ExpensePayment dataExpensePayment; dataExpensePayment = new Data.ExpensePayment(); dataExpensePayment.Delete(id); dataExpensePayment.Dispose(); }
public void Add(int typeId, DateTime paymentDate, double amount, string comment) { Data.ExpensePayment dataExpensePayment; dataExpensePayment = new Data.ExpensePayment(); dataExpensePayment.Add(typeId, paymentDate, amount, comment); dataExpensePayment.Dispose(); }
public static List<IPayment> GetTopExpensePayments(int year) { Data.ExpensePayment dataExpensePayment; List<IPayment> expensePayments; dataExpensePayment = new Data.ExpensePayment(); expensePayments = dataExpensePayment.GetTopExpensePayments(year); dataExpensePayment.Dispose(); return expensePayments; }
public static List<IPayment> GetBudgetExpensePayments(int budgetHeaderId, int year, int week) { Data.ExpensePayment dataExpensePayment; List<IPayment> expensePayments; dataExpensePayment = new Data.ExpensePayment(); expensePayments = dataExpensePayment.GetBudgetExpensePayments(budgetHeaderId, year, week); dataExpensePayment.Dispose(); return expensePayments; }
public List<IPayment> GetPayments(int year, int week) { Data.ExpensePayment dataExpensePayment; List<IPayment> expensePayments; dataExpensePayment = new Data.ExpensePayment(); expensePayments = dataExpensePayment.GetPayments(year, week); dataExpensePayment.Dispose(); return expensePayments; }
public List<IPayment> GetPayments(int? categoryId, int? typeId, DateTime? paymentDateFrom, DateTime? paymentDateTo, double? amountFrom, double? amountTo, string comment) { Data.ExpensePayment dataExpensePayment; List<IPayment> expensePayments; Nullable<int> lCategoryId, lTypeId; dataExpensePayment = new Data.ExpensePayment(); lCategoryId = (categoryId == 0) ? new Nullable<int>() : categoryId; lTypeId = (typeId == 0) ? new Nullable<int>() : typeId; expensePayments = dataExpensePayment.GetPayments(lCategoryId, lTypeId, paymentDateFrom, paymentDateTo, amountFrom, amountTo, comment); dataExpensePayment.Dispose(); return expensePayments; }