public ActionResult Index(string webTypeCode) { var res = Catesvc.GetWebType(); ViewData["WebType"] = res.Rows; webTypeCode = string.IsNullOrEmpty(webTypeCode) ? Catesvc.GetDefaultWebType().CodeName : webTypeCode; var ret = svc.GetByCode(webTypeCode); ret = ret ?? new ConfigInfo(); ViewData["Config"] = ret; return(View()); }
public static ConfigInfo GetWebInfo() { return(svc.GetByCode(webTypeCode)); }