Gaurav Raj

Gaurav Raj

  • NA
  • 475
  • 88.5k

Class are not read in webservice Please Help me guys

Sep 16 2017 3:12 AM
These three errors in my web method
[WebMethod]
public List<Home> getHome()
{
Connection cs = new Connection();
var q = from a in cs.da.Home2Procedure(1)
select
new Home
{
BlogId = Convert.ToInt32(a.Blog_Id),
BlogPic = a.Blog_Pic,
Blog = a.Blog,
date = a.Date1.ToString(),
time = a.Time1.ToString(),

};
return q.ToList();
}

Answers (1)