public ActionResult Index(CardsModels model) { // 注意:CardsModels 中的 MenuID 是無效的 long menuId = CardsDAO.GetMenuID(model.No); ArticleIntroModels intro = ArticleIntroDAO.GetItem(model.No); ViewBag.SiteID = model.SiteID; ViewBag.MenuID = menuId; ViewBag.Style = model.StylesID == 0 ? 1 : model.StylesID; return(View(intro)); }
public ActionResult Edit(long siteId, long menuId) { ArticleIntroModels item = ArticleIntroDAO.GetItem(menuId); if (item == null) { item = new ArticleIntroModels { ID = WorkLib.GetItem.NewSN(), MenuID = menuId, IsIssue = true }; } ViewBag.SiteID = siteId; ViewBag.MenuID = menuId; ViewBag.DateFmt = WebInfo.DateFmt; // View 中,WebInfo 會出現命名衝突 ViewBag.UploadUrl = WorkV3.Golbal.UpdFileInfo.GetVPathByMenuID(siteId, menuId); return(View(item)); }