public static int GetTotalHospitalsCount() { // declare the web service var service = new HospitalServiceReference.HospitalServiceSoapClient(); // get the item count var result = service.GetTotalHospitalsCount(); return(result); }
GetAllHospitals(int startIndex, int pageSize, string sortBy) { // declare the web service var service = new HospitalServiceReference.HospitalServiceSoapClient(); // select the data from database, sort by date by default HospitalServiceReference.SerializableHospital[] hospitalList = service.GetAllHospitals(startIndex, pageSize, SearchHospitalName); return(hospitalList); }