Exemplo n.º 1
0
        public ActionResult SearchTemplate()
        {
            CMember          member     = (CMember)Session[CMemberSession.Session_Login_User];//會員
            List <CTemplate> lsTemplate = CTemplateFactory.fn模板查詢();

            return(PartialView("_TemplateBlock", lsTemplate));
        }
Exemplo n.º 2
0
        public string SearchTemplateContent(int TemplateId)
        {
            CMember   member     = (CMember)Session[CMemberSession.Session_Login_User];//會員
            CTemplate myTemplate = CTemplateFactory.fn模板查詢()
                                   .FirstOrDefault(v => v.fTemplateId == TemplateId);

            return(myTemplate.fContent);
        }