public ActionResult Detail(string ascii, int id) { var result = articleRepositoryFE.GetItemByNameAscii(ascii); ViewBag.Ads = advertiesRepositoryFe.GetItemById(14); ViewBag.CopyRight = articleRepositoryFE.GetTopByType(3343, 0, 1).FirstOrDefault(); ViewBag.OtherNews = articleRepositoryFE.GetOtherArticle(result.ArticleType.ID, result.ID, 0, 5); return Request.Browser.IsMobileDevice ? View(@"~/Views/Mobile/DetailNews.cshtml", result) : View(result); }
public ActionResult LastestNews() { var model = _articleRepositoryFe.GetTopByType(3324, 0, 5); return(View(model)); }