// GET: Admin/Article/GetArticles public ActionResult Index() { var model = new ArticleViewModel(); var articles = model.GetArticles(); return(View()); }
public ActionResult GetArticles() { var tableModel = new DataTablesAjaxRequestModel(Request); var model = new ArticleViewModel(); var data = model.GetArticles(tableModel); return(Json(data, JsonRequestBehavior.AllowGet)); }