示例#1
0
        public ActionResult TopBlog(int id)
        {
            Response response = new Response()
            {
                Code = 0
            };

            if (blogManager.Find(id) == null)
            {
                response.Message = "该博客不存在!";
                return(Json(response));
            }
            webConfigManager.SetConfig("TopBlog", id.ToString());
            response.Code = 1;
            return(Json(response));
        }