public void Delete(int id) { Data.ExpenseType dataExpenseType; dataExpenseType = new Data.ExpenseType(); dataExpenseType.Delete(id); dataExpenseType.Dispose(); }
public int Add(int categoryId, string name) { Data.ExpenseType dataExpenseType; int result; dataExpenseType = new Data.ExpenseType(); result = dataExpenseType.Add(categoryId, name); dataExpenseType.Dispose(); return result; }
public List<IPaymentType> GetTypes() { Data.ExpenseType dataExpenseType; List<IPaymentType> expenseTypes; dataExpenseType = new Data.ExpenseType(); expenseTypes = dataExpenseType.GetTypes(); dataExpenseType.Dispose(); return expenseTypes; }
public void Edit(int id, int categoryId, string name) { Data.ExpenseType dataExpenseType; dataExpenseType = new Data.ExpenseType(); dataExpenseType.Edit(id, categoryId, name); dataExpenseType.Dispose(); }
public bool IsUsed(int id) { bool isUsed; Data.ExpenseType dataExpenseType; dataExpenseType = new Data.ExpenseType(); isUsed = dataExpenseType.IsUsed(id); dataExpenseType.Dispose(); return isUsed; }