Esempio n. 1
0
        public void DeleteTransaction(int GroupId)
        {
            string queryString = $"https://financialwebapi.azurewebsites.net/api/Transactions/DeleteTransaction?Id={GroupId}";

            DataService.DeleteDataServiceAsync(queryString);
        }
Esempio n. 2
0
        public void DeleteBankAccount(int BankAccountId)
        {
            string queryString = $"https://financialwebapi.azurewebsites.net/api/BankAccounts/DeleteBankAccount?Id={BankAccountId}";

            DataService.DeleteDataServiceAsync(queryString);
        }
Esempio n. 3
0
        public void CalculateTransaction(int TransactionId)
        {
            string queryString = $"https://financialwebapi.azurewebsites.net/api/Transactions/CalculateTransaction?Id={TransactionId}";

            DataService.PutDataServiceAsync(queryString);
        }
Esempio n. 4
0
        public void EditBankAccount(int BankAccountId, string UserId, string Name, decimal Balance, AccountType Type)
        {
            string queryString = $"https://financialwebapi.azurewebsites.net/api/BankAccounts/EditBankAccount?Id={BankAccountId}&UserId={UserId}&Name={Name}&Balance={Balance}&Type={Type}";

            DataService.PutDataServiceAsync(queryString);
        }
Esempio n. 5
0
        // Transactions
        public async Task <HttpResponseMessage> CreateTransaction(decimal Amount, string Memo, TransactionType Type, string CreatorId, int GroupId, int BudgetId, int BudgetItemId, int BankAccountId)
        {
            string queryString = $"https://financialwebapi.azurewebsites.net/api/Transactions/AddTransaction?Amount={Amount}&Memo={Memo}&Type={Type}&CreatorId={CreatorId}&GroupId={GroupId}&BudgetId={BudgetId}&BudgetItemId={BudgetItemId}&BankAccountId={BankAccountId}";

            return(await DataService.PostDataServiceAsync(queryString));
        }
Esempio n. 6
0
        public void DeleteBudgetItem(int BudgetItemId)
        {
            string queryString = $"https://financialwebapi.azurewebsites.net/api/BudgetItems/DeleteBudgetItem?Id={BudgetItemId}";

            DataService.DeleteDataServiceAsync(queryString);
        }
Esempio n. 7
0
        // Bank Accounts
        public void CreateBankAccount(string Name, decimal Balance, AccountType Type, string UserId)
        {
            string queryString = $"https://financialwebapi.azurewebsites.net/api/BankAccounts/AddAccount?Name={Name}&Balance={Balance}&Type={Type}&UserId={UserId}";

            DataService.PostDataServiceAsync(queryString);
        }
Esempio n. 8
0
        public void EditBudgetItem(int BudgetItemId, string Name, decimal Spent, decimal Target)
        {
            string queryString = $"https://financialwebapi.azurewebsites.net/api/BudgetItems/EditBudgetItem?Id={BudgetItemId}&Name={Name}&Spent={Spent}&Target={Target}";

            DataService.PutDataServiceAsync(queryString);
        }
Esempio n. 9
0
        // Budget Items
        public void CreateBudgetItem(string Name, int BudgetId)
        {
            string queryString = $"https://financialwebapi.azurewebsites.net/api/BudgetItems/AddBudgetItem?Name={Name}&BudgetId={BudgetId}";

            DataService.PostDataServiceAsync(queryString);
        }
Esempio n. 10
0
        // Budgets
        public void CreateBudget(string Name, int GroupId)
        {
            string queryString = $"https://financialwebapi.azurewebsites.net/AddBudget?Name={Name}&GroupId={GroupId}";

            DataService.PostDataServiceAsync(queryString);
        }
Esempio n. 11
0
        public void EditGroup(int GroupId, string Name, decimal Balance, decimal StartAmount)
        {
            string queryString = $"https://financialwebapi.azurewebsites.net/api/Groups/EditGroup?Id={GroupId}&Name={Name}&Balance={Balance}&StartAmount={StartAmount}";

            DataService.PutDataServiceAsync(queryString);
        }
Esempio n. 12
0
        // Group
        public void CreateGroup(string Name)
        {
            string queryString = $"https://financialwebapi.azurewebsites.net/api/Groups/AddGroup?Name={Name}";

            DataService.PostDataServiceAsync(queryString);
        }