Backup/GXXT/Controllers/NewsInfoController.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MvcApplication2.Controllers
{
    public class NewsInfoController : Controller
    {
        //
        // GET: /NewsInfo/
        Maticsoft.BLL.NewsInfo bll = new Maticsoft.BLL.NewsInfo();
        Maticsoft.BLL.Enjoys ebll = new Maticsoft.BLL.Enjoys();
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Create(string ID)
        {
            if (string.IsNullOrEmpty(ID))
            {
                Maticsoft.Model.NewsInfo model = new Maticsoft.Model.NewsInfo();

                return View(model);
            }
            else
            {
                return View(bll.GetModel(Convert.ToInt32(ID)));
            }
        }

        public ActionResult NewsDetail(string ID)
        {
            if (string.IsNullOrEmpty(ID))
            {
                Maticsoft.Model.NewsInfo model = new Maticsoft.Model.NewsInfo();

                return View(model);
            }
            else
            {
                return View(bll.GetModel(Convert.ToInt32(ID)));
            }
        }

        public ActionResult SManage(Maticsoft.ViewModel.EnjoysSearch model)
        {
            return View(model);
        }

        public PartialViewResult SSearch(Maticsoft.ViewModel.EnjoysSearch model)
        {
            return PartialView(model);
        }

        public PartialViewResult SList(Maticsoft.ViewModel.EnjoysSearch model)
        {
            return PartialView(ebll.Search(model));
后面还有 44 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。