Esempio n. 1
0
        public void Delete(int id)
        {
            Data.IncomeCategory dataIncomeCategory;

            dataIncomeCategory = new Data.IncomeCategory();
            dataIncomeCategory.Delete(id);
            dataIncomeCategory.Dispose();
        }
Esempio n. 2
0
        public void Edit(int id, string name)
        {
            Data.IncomeCategory dataIncomeCategory;

            dataIncomeCategory = new Data.IncomeCategory();
            dataIncomeCategory.Edit(id, name);
            dataIncomeCategory.Dispose();
        }
Esempio n. 3
0
        public int Add(string name)
        {
            Data.IncomeCategory dataIncomeCategory;
            int result;

            dataIncomeCategory = new Data.IncomeCategory();
            result = dataIncomeCategory.Add(name);
            dataIncomeCategory.Dispose();

            return result;
        }
Esempio n. 4
0
        public bool IsUsed(int id)
        {
            bool isUsed;
            Data.IncomeCategory dataIncomeCategory;

            dataIncomeCategory = new Data.IncomeCategory();
            isUsed = dataIncomeCategory.IsUsed(id);
            dataIncomeCategory.Dispose();

            return isUsed;
        }
Esempio n. 5
0
        public List<IPaymentCategory> GetCategories()
        {
            Data.IncomeCategory dataIncomeCategory;
            List<IPaymentCategory> incomeCategories;

            dataIncomeCategory = new Data.IncomeCategory();
            incomeCategories = dataIncomeCategory.GetCategories();
            dataIncomeCategory.Dispose();

            return incomeCategories;
        }