public DataTable DoctorData(string queryNo, string choice, string condition) { DataTable dt = null; string queryString = null; switch (queryNo) { case "1": queryString = "API_GetDoctorList"; break; } try { dt = doctorGateway.DoctorData(queryString, choice, condition); if (dt != null) { return(dt); } } catch { return(null); } return(null); }