示例#1
0
 public JsonResult List()
 {
     return(Json(BlogDAO.ListAll(), JsonRequestBehavior.AllowGet));
 }
        public ActionResult Index()
        {
            var model = blogDAO.ListAll();

            return(View(model));
        }