I creat new WCF REST Services I need JSON Result for multi row with key "Info" like this
{"Info":
[
{
"email": "abc@gmail.com",
"cus_name": "John",
"mobile": "009854"
},
{
"email": "safft@gmail.com",
"cus_name": "Smith",
"mobile": "009114"
}
]}
and this is my code and show me error:
public InfoContract GetOrderDetails(string OrderID)
{
OrderContract order = new OrderContract();
try
{
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["ssd"].ConnectionString);
con.Close();
con.Open();
SqlDataAdapter d ...
Go to the complete details ...