Beispiel #1
0
        public HttpResponseMessage GetBudget(GetExpenses request)
        {
            ExpenseTracker result = new ExpensesTrackerRepository().GetBudget(request);

            return(Request.CreateResponse(HttpStatusCode.OK, result));
        }
Beispiel #2
0
        public HttpResponseMessage GetTransaction(GetExpenses request)
        {
            List <Expenses> result = new ExpensesTrackerRepository().GetExpenses(request);

            return(Request.CreateResponse(HttpStatusCode.OK, result));
        }
Beispiel #3
0
        public HttpResponseMessage AddTransaction(ExpenseTransaction transaction)
        {
            Boolean result = new ExpensesTrackerRepository().AddExpenseTransaction(transaction);

            return(Request.CreateResponse(HttpStatusCode.OK, result));
        }
Beispiel #4
0
        public HttpResponseMessage GetStores(string store)
        {
            List <string> result = new ExpensesTrackerRepository().GetStores(store);

            return(Request.CreateResponse(HttpStatusCode.OK, result));
        }
Beispiel #5
0
        public HttpResponseMessage GetExpenseSubGroups()
        {
            List <ExpenseSubGroup> result = new ExpensesTrackerRepository().GetExpenseSubGroups();

            return(Request.CreateResponse(HttpStatusCode.OK, result));
        }
Beispiel #6
0
        public HttpResponseMessage GetAccountDetails()
        {
            List <AccountDetails> result = new ExpensesTrackerRepository().GetAccountDetails();

            return(Request.CreateResponse(HttpStatusCode.OK, result));
        }