private string BASE_URL = "http://localhost:24491/ServiceProduct.svc/"; public List<Product> findall() { try { var wc = new WebClient(); var json = wc.DownloadString(BASE_URL + "findall"); var js = new JavaScriptSerializer(); return js.Deserialize<List <Product>>(json); } catch (Exception ex) { throw ex; } }
Invalid JSON primitive: .
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)