public JsonResult GetAbout() { var data = new Smart.Framework.BLL.About().FindByPage(1, 1); if (data.Count() > 0) { return Json(data); } return Json(""); }
public ActionResult About() { var data = new Smart.Framework.BLL.About().FindALL(); if (data.Count() > 0) { ViewBag.about = data.FirstOrDefault().content; } return View("About"); }