I have a web service method that I would like to return multiple rows from datatable.
I am familiar with returning values from web service methods, but not with multiple rows from datatable. What is the best way to do this? Do I need to return an array or list<>?
My code method is configured as follows.
[WebMethod]
public void UpdateBold(int count, float lat, float lng)
{
DataTable dt = new Gallery().DisplayNearestByLatLong(count, lat, lng);
}
source
share