private async System.Threading.Tasks.Task SignUp() { AreBtnsEn = false; if (string.Equals(Entry_Password, Entry_ConfirmedPassword)) { var isRegistered = await n_Restctrl.Register(Entry_Email, Entry_Password, Entry_ConfirmedPassword); if (isRegistered.StatusCode == System.Net.HttpStatusCode.OK) { await Application.Current.MainPage.DisplayAlert("Register", "Account created", "Ok"); } else { await Application.Current.MainPage.DisplayAlert("Register", "Something went wrong, check your connection", "Ok"); } } else { await Application.Current.MainPage.DisplayAlert("Password", "Passwords are different", "Ok"); } AreBtnsEn = true; }