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