private async Task DeleteFunction() { try { var response = await server.DeleteUserRoom(new UserRoom() { Email = App.CurrentUserEmail, Room = RoomName }); await Shell.Current.Navigation.PopPopupAsync(); await Shell.Current.Navigation.PopAsync(); }catch (Exception ex) { await Shell.Current.Navigation.PushPopupAsync(new InfoPopup("Error", ex.Message)); } }