예제 #1
0
        public void Delete(int id)
        {
            Data.ExpenseType dataExpenseType;

            dataExpenseType = new Data.ExpenseType();
            dataExpenseType.Delete(id);
            dataExpenseType.Dispose();
        }
예제 #2
0
        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;
        }
예제 #3
0
        public List<IPaymentType> GetTypes()
        {
            Data.ExpenseType dataExpenseType;
            List<IPaymentType> expenseTypes;

            dataExpenseType = new Data.ExpenseType();
            expenseTypes = dataExpenseType.GetTypes();
            dataExpenseType.Dispose();

            return expenseTypes;
        }
예제 #4
0
        public void Edit(int id, int categoryId, string name)
        {
            Data.ExpenseType dataExpenseType;

            dataExpenseType = new Data.ExpenseType();
            dataExpenseType.Edit(id, categoryId, name);
            dataExpenseType.Dispose();
        }
예제 #5
0
        public bool IsUsed(int id)
        {
            bool isUsed;
            Data.ExpenseType dataExpenseType;

            dataExpenseType = new Data.ExpenseType();
            isUsed = dataExpenseType.IsUsed(id);
            dataExpenseType.Dispose();

            return isUsed;
        }