示例#1
0
 public JsonResult NewsList(int page = 0, int size = 10)
 {
     if (size > 20) size = 20;
     var busi = new NewsBusi();
     return Json(busi.GetDynamicNews(page, size));
 }
示例#2
0
 public ActionResult NewsItem(int id = 0)
 {
     var busi = new NewsBusi();
     busi.UpdateViews(id);
     return View("/Views/Home/NewsItem.cshtml", busi.GetItem(id));
 }