private async Task MakeBookingAsync() { if (IsBusy) { return; } IsBusy = true; try { var dbuser = _realm.All <Patient>().FirstOrDefault(); if (CrossConnectivity.Current.IsConnected) { var isSuccess = await services.CreateAppointment(dbuser.id, FullDateAndMonth, SelectedDoctor, SelectedMedicalBuilding); } else { BookingSuccess = false; } } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex); } finally { BookingSuccess = true; IsBusy = false; } }