Hi- I have a webservice that returns a list of "Clinics" near a certain lat/long. However, in my calling web, I can't compile as an error is occuring on the following code.
private static List<Clinic> GetClinicsNearLocation(Coordinate coordinate, int searchDistance)
{
var wsDental = new ProviderLocation_Dental();
List<Clinic> clinics = wsDental.GetSearchResults(
coordinate.Latitude, coordinate.Longitude, searchDistance);
return clinics;
}
The error is "Cannot convert expression type 'com.dev.webservices.Clinic[]' to return type 'System.Collections.Generic.List 'com.dev.services.dev.Clinic'"
Any ideas as to why?
Here is the web service's method:
public List<Clinic> GetSearchResults(string latitude, string longitude, int searchDistance)
{
var results = Clinic.GetClinicsNearLocation(latitude, longitude, searchDistance);
return results;
}