private async void SendMessageClicked(object sender, EventArgs e) { // TODO if (string.IsNullOrEmpty(Dropdown.Label) || string.IsNullOrEmpty(Editor.Text) || Dropdown.Label == "Select..." || Editor.Text == "Enter your question here") { await DisplayAlert("Information", "Please fill up all the entry", "OK"); } else { var page = new ContactUsPage(); var credentials = DependencyService.Get <ICredentialRetriever>().GetCredential(); var isSuccess = await _basicAccntService.SyncEnquiryTypeOntraport(ConvertEnquiryToId(Dropdown.Label), Editor.Text, credentials.User.Email); if (isSuccess) { await DisplayAlert("Message Sent!", "We will be in touch soon.", "OK"); await Navigation.PushAsync(page); } else { await DisplayAlert("Message Sending Failed!", "Message Sending Failed", "OK"); } } }