async Task <bool> RegisterValidations() { if (!FunctionsService.ValidateEmail(Mail)) { await _page.DisplayAlert(T.GetValue("app_name"), T.GetValue("mail_error"), T.GetValue("ok")); return(false); } if (!FunctionsService.ValidatePhone(Phone)) { await _page.DisplayAlert(T.GetValue("app_name"), T.GetValue("phone_error"), T.GetValue("ok")); return(false); } if (Password != RePassword) { await _page.DisplayAlert(T.GetValue("app_name"), T.GetValue("password_differents_message"), T.GetValue("ok")); return(false); } return(true); }
async Task <bool> UserValidations() { if (!string.IsNullOrEmpty(User.Mail) && !FunctionsService.ValidateEmail(User.Mail)) { await _page.DisplayAlert(T.GetValue("app_name"), T.GetValue("mail_error"), T.GetValue("ok")); return(false); } if (!FunctionsService.ValidatePhone(User.Phone)) { await _page.DisplayAlert(T.GetValue("app_name"), T.GetValue("phone_error"), T.GetValue("ok")); return(false); } return(true); }