예제 #1
0
 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);
 }
예제 #2
0
        public ActionResult LastestNews()
        {
            var model = _articleRepositoryFe.GetTopByType(3324, 0, 5);

            return(View(model));
        }