vs2010,llblgen 2.6,c#,adapter
Want to return an enitycollection as the model used by the view but i cannot get it working.
public ActionResult news()
{
ViewData["Title"] = "News";
EntityCollection<TblNewsEntity> oNews = new EntityCollection<TblNewsEntity>();
NewsDB oBLNews = new NewsDB();
oNews = oBLNews.GetNews(null).ToList();//doeesn't work
oNews = oBLNews.GetNews(null);//doeesn't work
return View(oNews);
}
What should i do to get it working...