// 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)); }
// 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); }
// Budgets public void CreateBudget(string Name, int GroupId) { string queryString = $"https://financialwebapi.azurewebsites.net/AddBudget?Name={Name}&GroupId={GroupId}"; DataService.PostDataServiceAsync(queryString); }
// 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); }
// Group public void CreateGroup(string Name) { string queryString = $"https://financialwebapi.azurewebsites.net/api/Groups/AddGroup?Name={Name}"; DataService.PostDataServiceAsync(queryString); }