private async void btnSumit(object sender, RoutedEventArgs e) { this.currentMember.firstName = this.FirstName.Text; this.currentMember.lastName = this.LastName.Text; this.currentMember.email = this.Email.Text; this.currentMember.password = this.Password.Password.ToString(); this.currentMember.avatar = this.ImageUrl.Text; this.currentMember.phone = this.Phone.Text; this.currentMember.address = this.Address.Text; this.currentMember.introduction = this.Introduction.Text; await API_Handle.Sign_Up(this.currentMember); Debug.WriteLine("Acction Succcess"); //đăng ký thành công sẽ tắt bảng. this.Result = MyResult.Yes; // Close the dialog dialogRegister.Hide(); }