private async void SignupUser(string name, string email) { UserModel user = new UserModel(); try { user.Key = "00"; user.Name = name; user.Email = email; user.Phone = "No Assigned"; user.Jdate = getTodayDate(); user.Image = new Uri("https://firebasestorage.googleapis.com/v0/b/nasiyebooking.appspot.com/o/image.png?alt=media&token=8a11ada6-4ee9-43fe-a5e3-f23b9c1f3e71"); user.Rating = 0; user.Status = "Offline"; string phone = await _firebaseAuth.GetUserPhone(); user.Phone = phone; user.TripKey = "00"; string res = await _firebaseAuth.GetCurrentUser(); if (res != null) { _firebaseDatabase.CreateProfile("users", user); App.Current.MainPage = new MainContainerPage(); } } catch (Exception ex) { container.IsVisible = true; loader.IsVisible = false; await DisplayAlert("Signup", "Something went wrong, " + ex.Message, "OK"); } }