public ActionResult List() { var dbContext = new MyDbDataContext(); var ct = from Content in dbContext.Table4s select Content; var ctm = new List<SupportTeam.Models.Content>(); if (ct.Any()) { foreach (var list in ct) { ctm.Add(new SupportTeam.Models.Content() { id = list.Id, title = list.Title, page_title = list.Ptitle, url = list.Url, description = list.Description }); } } return View(ctm); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)