public async Task <Models.Account> Deposit(Models.ATM atm, Models.ATMInventory inventory) { return(await Post <Models.Account>("/api/account/deposit", new Dictionary <string, object>() { { "atmId", atm.Id }, { "items", inventory } })); }
public async Task <Models.ATMInventory> Withdraw(Models.ATM atm, long amount) { return(await Post <Models.ATMInventory>("/api/account/withdraw", new Dictionary <string, object>() { { "atmId", atm.Id }, { "amount", amount } })); }
public async Task <Models.ATM> Login(string id, string password) { me = await Post <Models.ATM>("/api/login/atm", new Dictionary <string, object>() { { "id", id }, { "password", password } }); return(me); }