public async Task<bool> SignInAsync()
{
IsSigningIn = true;
try
{
bool result = await PortalService.CurrentPortalService.SignIn();
if (result)
{
// navigate to the main page
(new NavigationService()).Navigate(App.MainPageName);
// send a message to populate the data
Messenger.Default.Send<PopulateDataMessage>(new PopulateDataMessage());
IsSigningIn = false;
return true;
}
}
catch
{
}
IsSigningIn = false;
return false;
}