this is my code but i dont know how can i call them with jquery ,web service run correctly so please help me guys i really need a help
public class RegClass
{
public int regID { get; set; }
public string Name { get; set; }
public string gender { get; set; }
public string country{ get; set; }
}
[WebMethod]
public List<RegClass> getRegister() {
Connection cs = new Connection();
var q = from a in cs.da.RegisterTables
select
new RegClass
{
regID=a.Id,
Name=a.F_Name+" "+a.L_Name,
gender=a.Gender,
country=a.Counttry,
};
return q.ToList();
}