public void Delete(int id) { Data.IncomeCategory dataIncomeCategory; dataIncomeCategory = new Data.IncomeCategory(); dataIncomeCategory.Delete(id); dataIncomeCategory.Dispose(); }
public void Edit(int id, string name) { Data.IncomeCategory dataIncomeCategory; dataIncomeCategory = new Data.IncomeCategory(); dataIncomeCategory.Edit(id, name); dataIncomeCategory.Dispose(); }
public int Add(string name) { Data.IncomeCategory dataIncomeCategory; int result; dataIncomeCategory = new Data.IncomeCategory(); result = dataIncomeCategory.Add(name); dataIncomeCategory.Dispose(); return result; }
public bool IsUsed(int id) { bool isUsed; Data.IncomeCategory dataIncomeCategory; dataIncomeCategory = new Data.IncomeCategory(); isUsed = dataIncomeCategory.IsUsed(id); dataIncomeCategory.Dispose(); return isUsed; }
public List<IPaymentCategory> GetCategories() { Data.IncomeCategory dataIncomeCategory; List<IPaymentCategory> incomeCategories; dataIncomeCategory = new Data.IncomeCategory(); incomeCategories = dataIncomeCategory.GetCategories(); dataIncomeCategory.Dispose(); return incomeCategories; }