public ActionResult Index(CardsModels model) { var data = PlainTextDAO.Get(model.No, true); if (data == null) { return(null); } int style = model.StylesID; return(View("Style" + style, data)); }
public ActionResult Edit(long SiteID, long MenuID, long CardNo) { ViewBag.SiteID = SiteID; ViewBag.MenuID = MenuID; PlainTextModel model = PlainTextDAO.Get(CardNo); if (model == null) { model = new PlainTextModel(); model.CardNo = CardNo; } return(View(model)); }