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")); }
public ActionResult GetFormJson(string keyValue) { var data = webSiteApp.GetForm(keyValue); return(Content(data.ToJson())); }