async void Login(RefitApiService service) { var result = await service.EmpireAsync(Priority.Background, requestString);//.ConfigureAwait (false); if (result != null) ResultString = result.result.session_id; else ResultString = "An Error Occured";//resultLbl.Text = result.ToString() ; }
async void Login(RefitApiService service, string requestString) { var result = await service.EmpireAsync(Priority.Background, requestString);//.ConfigureAwait (false); if(result != null) { if (!String.IsNullOrEmpty(result.result.session_id)) { await Navigation.PushAsync(new MailMainView()); } } else { } //if (result != null) // ResultString = result.result.session_id; //else // ResultString = "An Error Occured";//resultLbl.Text = result.ToString() ; }