public UpdateUserCoordinateResponse UpdateUserCoordinates(UserCoordinate userCoordinate) { HttpRequestHandler requestHandler = new HttpRequestHandler(); requestHandler.AccessToken = authenticationService.AuthenticationToken; requestHandler.Method = "POST"; requestHandler.Url = UPDATE_USER_COORDINATE_URL; return(requestHandler.SendRequest <UserCoordinate, UpdateUserCoordinateResponse>(userCoordinate)); }
private void button1_Click(object sender, EventArgs e) { UserCoordinate userCoordinate = new UserCoordinate(); userCoordinate.UserName = this.userName; userCoordinate.Latitude = textBox2.Text; userCoordinate.Longitude = textBox1.Text; var result = userService.UpdateUserCoordinates(userCoordinate); if (result.IsSuccess) { this.Close(); } else { MessageBox.Show(result.Message); } }