Beispiel #1
0
        public ActionResult WebSite(string key)
        {
            WebSiteApp    app    = new WebSiteApp();
            WebSiteEntity entity = app.GetForm(key);

            if (entity != null && !string.IsNullOrEmpty(entity.Id))
            {
                SysLoginObjHelp.sysLoginObjHelp.AddWebSiteId(entity.Id);
                SysLoginObjHelp.sysLoginObjHelp.AddWebSiteName(entity.FullName);
                SysLoginObjHelp.sysLoginObjHelp.AddWebSiteShortName(entity.ShortName);
                if (!string.IsNullOrEmpty(entity.UrlAddress))
                {
                    string strUrlAddress = entity.UrlAddress.ToLower().Replace("http://", "");
                    SysLoginObjHelp.sysLoginObjHelp.AddWebSiteAddress(strUrlAddress);
                }
                SysLoginObjHelp.sysLoginObjHelp.AddWebSite <WebSiteEntity>(entity);
            }

            return(RedirectToAction("WebSiteMgr"));
        }
Beispiel #2
0
        public ActionResult GetFormJson(string keyValue)
        {
            var data = webSiteApp.GetForm(keyValue);

            return(Content(data.ToJson()));
        }