コード例 #1
0
    public static int GetTotalHospitalsCount()
    {
        // declare the web service
        var service = new HospitalServiceReference.HospitalServiceSoapClient();

        // get the item count
        var result = service.GetTotalHospitalsCount();

        return(result);
    }
コード例 #2
0
    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);
    }