Ejemplo n.º 1
0
 async Task ExecuteLoginCommand()
 {
     if (string.IsNullOrEmpty(_userName) || string.IsNullOrEmpty(_password))
     {
         await PageReference.DisplayAlert("Alerta", "Se necesita capturar las credenciales", "OK");
     }
     else
     {
         if (await LoginUser(_userName, _password))
         {
             await PageReference.DisplayAlert("Alerta", "Bienvenido", "OK");
         }
         else
         {
             await PageReference.DisplayAlert("Alerta", "Error, usuio o contraseña invalidos", "OK");
         }
     }
 }