public AmtServiceResponse GetBalance(AmtServiceRequest request) { // Check input request.Operation = "GetBalance"; // Check authorization if (!IsAuthorized(request.ApiKey)) return NotAuthorized(request); AmtService myService = new AmtService(request.Sandbox); return new AmtServiceResponse { Operation = "GetAccountBalance", Result = myService.GetAccountBalance() }; }
protected void BtnGetBalance_Click(object sender, EventArgs e) { AmtService myService = new AmtService(true); LitGetBalance.Text = myService.GetAccountBalance(); }