private void ExecuteRegisterCommand(object obj) { try { if (RegistrationId.IsEmpty() || !_promoService.IsRegistrationIdValid(RegistrationId)) { Message = "Invalid Registration Code\nPlease try again"; IsValid = false; return; } else // box is not empty so validate the text { Message = string.Empty; IsValid = true; GotoNextProcess(); } } catch (Exception ex) { string errorMessage = "Sorry, we are having trouble to communicate with Home Organizer Club Website!"; _logService.LogException(ex); Application.Current.MainPage.DisplayAlert("Registration Failed!", errorMessage, "Ok"); } }