private async void doSearch() { if (searchResultViewController != null) { Campus tmpCampus = searchResultViewController.selectedCampus; Lecturer tmpLecturer = searchResultViewController.selectedLecture; List <SessionBooking> ssList = new List <SessionBooking> (); if (tmpCampus != null) { ssList = await this.searchByCampus(tmpCampus); } if (tmpLecturer != null) { ssList = await this.searchByLecturer(tmpLecturer); } this.showResultInTable(ssList); } }