public async void updateProfile() { ProfilVM user = new ProfilVM(); user.email = GlobalData.email; ProfilRP res = await ApiCall.MakeCall <ProfilVM, ProfilRP>("profil", user); if (res.success) { username.Text = res.user.pseudo; email.Text = res.user.email; GlobalData.id = res.user._id; } }
public async void updateProfile() { ProfilVM user = new ProfilVM(); user.email = GlobalData.email; ProfilRP res = await ApiCall.MakeCall<ProfilVM, ProfilRP>("profil", user); if (res.success) { username.Text = res.user.pseudo; email.Text = res.user.email; GlobalData.id = res.user._id; } }